Using Server Variable ($_SERVER) Elements with PHP 5
Print this Article
Last Updated:
October 15, 2014 9:36 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.