mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 17:08:54 +00:00
Updates to register_globals and track_vars.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@32365 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c5060b056b
commit
7409dc748d
1 changed files with 35 additions and 21 deletions
|
@ -469,23 +469,29 @@ include_path=".;c:\www\phplib"
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="ini.register-globals">
|
||||
<varlistentry id="ini.register-globals">
|
||||
<term>
|
||||
<parameter>register_globals</parameter>
|
||||
<type>boolean</type>
|
||||
</term>
|
||||
<parameter>register_globals</parameter>
|
||||
<type>boolean</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Tells whether or not to register the EGPCS variables as global
|
||||
variables. You may want to turn this off if you don't want
|
||||
to clutter your scripts' global scope with user data. This makes
|
||||
most sense when coupled with <link linkend="ini.track-vars">track_vars</link>
|
||||
- in which case you can access all of the GPC variables through the
|
||||
<symbol>$HTTP_GET_VARS</symbol>, <symbol>$HTTP_POST_VARS</symbol> and
|
||||
<symbol>$HTTP_COOKIE_VARS</symbol> variables.
|
||||
</para>
|
||||
<para>
|
||||
Tells whether or not to register the EGPCS (Environment, GET,
|
||||
POST, Cookie, Server) variables as global variables. You may
|
||||
want to turn this off if you don't want to clutter your
|
||||
scripts' global scope with user data. This makes the most
|
||||
sense when coupled with <link
|
||||
linkend="ini.track-vars">track_vars</link> - in which case
|
||||
you can access all of the EGPCS variables through the
|
||||
<varname>$HTTP_ENV_VARS</varname>,
|
||||
<varname>$HTTP_GET_VARS</varname>,
|
||||
<varname>$HTTP_POST_VARS</varname>,
|
||||
<varname>$HTTP_COOKIE_VARS</varname>, and
|
||||
<varname>$HTTP_SERVER_VARS</varname>
|
||||
arrays in the global scope.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="ini.short-open-tag">
|
||||
<term>
|
||||
|
@ -527,15 +533,23 @@ include_path=".;c:\www\phplib"
|
|||
|
||||
<varlistentry id="ini.track-vars">
|
||||
<term>
|
||||
<parameter>track_vars</parameter>
|
||||
<type>boolean</type>
|
||||
<parameter>track_vars</parameter>
|
||||
<type>boolean</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
If enabled, GET, POST and cookie input can be found in the
|
||||
global associative arrays <symbol>$HTTP_GET_VARS</symbol>,
|
||||
<symbol>$HTTP_POST_VARS</symbol> and
|
||||
<symbol>$HTTP_COOKIE_VARS</symbol>, respectively.</para>
|
||||
<para>
|
||||
If enabled, then Environment, GET, POST, Cookie, and Server
|
||||
variables can be found in the global associative arrays
|
||||
<varname>$HTTP_ENV_VARS</varname>,
|
||||
<varname>$HTTP_GET_VARS</varname>,
|
||||
<varname>$HTTP_POST_VARS</varname>,
|
||||
<varname>$HTTP_COOKIE_VARS</varname>, and
|
||||
<varname>$HTTP_SERVER_VARS</varname>.
|
||||
</para>
|
||||
<para>
|
||||
Note that as of PHP 4.0.3, <systemitem
|
||||
role="directive">track_vars</systemitem> is always turned on.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue