Why do we need to set cgi.fix_pathinfo=0 in php.ini file?
Setting cgi.fix_pathinfo=0 in the php.ini file is a security measure. When this setting is enabled (1), the PHP interpreter tries to guess the intended script to execute even when the path is not correctly specified in the request. This behavior could lead to unauthorized code execution. By setting it to 0, we tell PHP not to guess and only execute scripts with a valid path in the request.