From 7cb8acd9558f156f57a2f2a427652dad9df29c7b Mon Sep 17 00:00:00 2001 From: Aidan Lister Date: Sat, 11 Sep 2004 13:32:52 +0000 Subject: [PATCH] Removed excessive register_globals information and transfered it to FAQ section git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168384 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/ini.xml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/appendices/ini.xml b/appendices/ini.xml index ca3fdc7c9d..5e9d0f3302 100644 --- a/appendices/ini.xml +++ b/appendices/ini.xml @@ -1,5 +1,5 @@ - + List of core &php.ini; directives @@ -464,21 +464,15 @@ - Tells whether or not to register the EGPCS (Environment, GET, - POST, Cookie, Server) variables as global variables. For example; - if register_globals = on, the URL - http://www.example.com/test.php?id=3 will produce - $id. Or, $DOCUMENT_ROOT from - $_SERVER['DOCUMENT_ROOT']. You may want to turn - this off if you don't want to clutter your scripts' global scope with - user data. As of PHP 4.2.0, - this directive defaults to off. It's preferred to - go through PHP Predefined Variables - instead, such as the - superglobals: - $_ENV, $_GET, - $_POST, $_COOKIE, and - $_SERVER. Please read the security chapter on + Whether or not to register the EGPCS (Environment, GET, + POST, Cookie, Server) variables as global variables. + + + As of PHP 4.2.0, + this directive defaults to off. + + + Please read the security chapter on Using register_globals for related information. @@ -487,7 +481,7 @@ cannot be set at runtime (ini_set). Although, you can use &htaccess; if your host allows it as described above. An example &htaccess; entry: - php_flag register_globals on. + php_flag register_globals off.