php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -


what’s difference between $_server['path_info'] , $_server['orig_path_info']? how use them?

when run print_r($_server), path_info , orig_path_info not present in array. why not? how can enable them?

i have read php manual on them, still don’t understand them.

the path_info variable present if invoke php script this:

http://www.example.com/phpinfo.php/hello_there 

it's /hello_there part after .php script. if don't invoke url that, there won't $_server["path_info"] environment variable.

the porig_ prefix uncommon. path_info standard cgi-environment variable, , should never prefixed. did read that? (there issues around php3/php4 if invoked php interpreter via cgi-bin/ - hardly has such setups today.)

for reference: http://www.ietf.org/rfc/rfc3875


Comments

Popular posts from this blog

fortran - Function return type mismatch -

queue - mq_receive: message too long -