Frequently Asked Questions

Using Server Variable ($_SERVER) Elements with PHP 5

Print this Article
Comment on this Article
Last Updated: November 4, 2011 1:27 PM

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.