PDA

View Full Version : Support for register_globals off



gtroll
June 15th, 2003, 04:28 AM
Support for register_globals off

In PHP 4.2.0 and later, the default value for the PHP directive register_globals is off. This is a major change in PHP. Having register_globals off affects the set of predefined variables available in the global scope. For example, to get DOCUMENT_ROOT you'll use $_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from the URL http://www.example.com/test.php?id=3 instead of $id, or $_ENV['HOME'] instead of $HOME.
http://php.net/globals and Security Reasons (http://us4.php.net/manual/en/security.registerglobals.php)

Rich
June 15th, 2003, 03:45 PM
Support for register_globals offThis is definitely something that we plan to do. It probably won't make it in the next version, but it is a top priority after real-time rate lookups have been completed.