aidan Sat Sep 11 09:32:52 2004 EDT
Modified files: /phpdoc/en/appendices ini.xml Log: Removed excessive register_globals information and transfered it to FAQ section http://cvs.php.net/diff.php/phpdoc/en/appendices/ini.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc/en/appendices/ini.xml diff -u phpdoc/en/appendices/ini.xml:1.8 phpdoc/en/appendices/ini.xml:1.9 --- phpdoc/en/appendices/ini.xml:1.8 Sat Aug 7 13:25:31 2004 +++ phpdoc/en/appendices/ini.xml Sat Sep 11 09:32:52 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <appendix id="ini"> <title>List of core &php.ini; directives</title> @@ -464,21 +464,15 @@ </term> <listitem> <para> - 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 - <literal>http://www.example.com/test.php?id=3</literal> will produce - <varname>$id</varname>. Or, <varname>$DOCUMENT_ROOT</varname> from - <varname>$_SERVER['DOCUMENT_ROOT']</varname>. You may want to turn - this off if you don't want to clutter your scripts' global scope with - user data. As of PHP <ulink url="&url.php.release4.2.0;">4.2.0</ulink>, - this directive defaults to <emphasis>off</emphasis>. It's preferred to - go through PHP <link linkend="reserved.variables">Predefined Variables - </link> instead, such as the - <link linkend="language.variables.superglobals">superglobals</link>: - <varname>$_ENV</varname>, <varname>$_GET</varname>, - <varname>$_POST</varname>, <varname>$_COOKIE</varname>, and - <varname>$_SERVER</varname>. Please read the security chapter on + Whether or not to register the EGPCS (Environment, GET, + POST, Cookie, Server) variables as global variables. + </para> + <para> + As of <ulink url="&url.php.release4.2.0;">PHP 4.2.0</ulink>, + this directive defaults to <emphasis>off</emphasis>. + </para> + <para> + Please read the security chapter on <link linkend="security.globals">Using register_globals</link> for related information. </para> @@ -487,7 +481,7 @@ cannot be set at runtime (<function>ini_set</function>). Although, you can use &htaccess; if your host allows it as described above. An example &htaccess; entry: - <userinput>php_flag register_globals on</userinput>. + <userinput>php_flag register_globals off</userinput>. </para> <note> <para>