Using Server Variable ($_SERVER) Elements with PHP 5
Print this Article
Comment on this Article
Last Updated:
February 19, 2007 9:11 AM
Our Linux hosting accounts run in CGI mode. When PHP 5 runs in this mode, the server variable element PATH_INFO behaves differently than under PHP 4. PHP 5 scripts can use the element SCRIPT_NAME in place of PATH_INFO to ensure the expected value is returned.