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
This commit is contained in:
Aidan Lister 2004-09-11 13:32:52 +00:00
parent b784e7f223
commit 7cb8acd955

View file

@ -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>