📄 ini.core.html
字号:
</table> </p> <p class="para">Here's a short explanation ofthe configuration directives.</p> <p class="para"> <dl> <dt id="ini.realpath-cache-size"> <span class="term"> <i><tt class="parameter">realpath_cache_size</tt></i> <a href="language.types.integer.html" class="type integer">integer</a> </span> <dd> <p class="para"> Determines the size of the realpath cache to be used by PHP. This value should be increased on systems where PHP opens many files, to reflect the quantity of the file operations performed. </p> </dd> </dt> <dt id="ini.realpath-cache-ttl"> <span class="term"> <i><tt class="parameter">realpath_cache_ttl</tt></i> <a href="language.types.integer.html" class="type integer">integer</a> </span> <dd> <p class="para"> Duration of time (in seconds) for which to cache realpath information for a given file or directory. For systems with rarely changing files, consider increasing the value. </p> </dd> </dt> </dl> </p> </div> <div id="ini.sect.data-handling" class="section"> <h2 class="title">Data Handling</h2> <p class="para"> <table border="5"> <caption><b>Data Handling Configuration Options</b></caption> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Name</th> <th colspan="1">Default</th> <th colspan="1">Changeable</th> <th colspan="1">Changelog</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">track_vars</td> <td colspan="1" rowspan="1" align="left">"On"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_??</td> <td class="empty"> </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">arg_separator.output</td> <td colspan="1" rowspan="1" align="left">"&"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 4.0.5.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">arg_separator.input</td> <td colspan="1" rowspan="1" align="left">"&"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">Available since PHP 4.0.5.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">variables_order</td> <td colspan="1" rowspan="1" align="left">"EGPCS"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL in PHP <= 5.0.5.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">request_order</td> <td colspan="1" rowspan="1" align="left">""</td> <td colspan="1" rowspan="1" align="left">PHP_INI_SYSTEM|PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">Available since PHP 5.3.0</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">auto_globals_jit</td> <td colspan="1" rowspan="1" align="left">"1"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">Available since PHP 5.0.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">register_globals</td> <td colspan="1" rowspan="1" align="left">"0"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL in PHP <= 4.2.3.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">register_argc_argv</td> <td colspan="1" rowspan="1" align="left">"1"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL in PHP <= 4.2.3.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">register_long_arrays</td> <td colspan="1" rowspan="1" align="left">"1"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">Available since PHP 5.0.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">post_max_size</td> <td colspan="1" rowspan="1" align="left">"8M"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">PHP_INI_SYSTEM in PHP <= 4.2.3. Available since PHP 4.0.3.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">gpc_order</td> <td colspan="1" rowspan="1" align="left">"GPC"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td class="empty"> </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">auto_prepend_file</td> <td colspan="1" rowspan="1" align="left">NULL</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL in PHP <= 4.2.3.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">auto_append_file</td> <td colspan="1" rowspan="1" align="left">NULL</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL in PHP <= 4.2.3.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">default_mimetype</td> <td colspan="1" rowspan="1" align="left">"text/html"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td class="empty"> </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">default_charset</td> <td colspan="1" rowspan="1" align="left">""</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td class="empty"> </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">always_populate_raw_post_data</td> <td colspan="1" rowspan="1" align="left">"0"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL in PHP <= 4.2.3. Available since PHP 4.1.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">allow_webdav_methods</td> <td colspan="1" rowspan="1" align="left">"0"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td class="empty"> </td> </tr> </tbody> </colgroup> </table> </p> <p class="para">Here's a short explanation ofthe configuration directives.</p> <p class="para"> <dl> <dt id="ini.track-vars"> <span class="term"> <i><tt class="parameter">track_vars</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <dd> <p class="para"> If enabled, then Environment, GET, POST, Cookie, and Server variables can be found in the global associative arrays <var class="varname"><a href="reserved.variables.environment.html" class="classname">$_ENV</a></var>, <var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET</a></var>, <var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST</a></var>, <var class="varname"><a href="reserved.variables.cookies.html" class="classname">$_COOKIE</a></var>, and <var class="varname"><a href="reserved.variables.server.html" class="classname">$_SERVER</a></var>. </p> <p class="para"> Note that as of PHP 4.0.3, <code class="systemitem systemitem">track_vars</code> is always turned on. </p> </dd> </dt> <dt id="ini.arg-separator.output"> <span class="term"> <i><tt class="parameter">arg_separator.output</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> The separator used in PHP generated URLs to separate arguments. </p> </dd> </dt> <dt id="ini.arg-separator.input"> <span class="term"> <i><tt class="parameter">arg_separator.input</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> List of separator(s) used by PHP to parse input URLs into variables. </p> <blockquote><p><b class="note">Note</b>: Every character in this directive is considered as separator! <br /> </p></blockquote> </dd> </dt> <dt id="ini.variables-order"> <span class="term"> <i><tt class="parameter">variables_order</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> Sets the order of the EGPCS (<i>E</i>nvironment, <i>G</i>et, <i>P</i>ost, <i>C</i>ookie, and <i>S</i>erver) variable parsing. For example, if variables_order is set to <i>"SP"</i> then PHP will create the <a href="language.variables.predefined.html" class="link">superglobals</a> <var class="varname"><a href="reserved.variables.server.html" class="classname">$_SERVER</a></var> and <var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST</a></var>, but not create <var class="varname"><a href="reserved.variables.environment.html" class="classname">$_ENV</a></var>, <var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET</a></var>, and <var class="varname"><a href="reserved.variables.cookies.html" class="classname">$_COOKIE</a></var>. Setting to "" means no <a href="language.variables.predefined.html" class="link">superglobals</a> will be set. </p> <p class="para"> If the deprecated <a href="ini.core.html#ini.register-globals" class="link">register_globals</a> directive is on (removed as of PHP 6.0.0), then variables_order also configures the order the <i>ENV</i>, <i>GET</i>, <i>POST</i>, <i>COOKIE</i> and <i>SERVER</i> variables are populated in global scope. So for example if variables_order is set to <i>"EGPCS"</i>, register_globals is enabled, and both <var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET['action']</a></var> and <var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST['action']</a></var> are set, then <var class="varname">$action</var> will contain the value of <var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST['action']</a></var> as <i>P</i> comes after <i>G</i> in our example directive value. </p> <div class="warning"><b class="warning">Warning</b> <p class="para"> In both the CGI and FastCGI SAPIs, <var class="varname"><a href="reserved.variables.server.html" class="classname">$_SERVER</a></var> is also populated by values from the environment; <i>S</i> is always equivelant to <i>ES</i> regardless of the placement of <i>E</i> elsewhere in this directive. </p> </div> <blockquote><p><b class="note">Note</b>: The content and order of <var class="varname"><a href="reserved.variables.request.html" class="classname">$_REQUEST</a></var> is also affected by this directive. <br /> </p></blockquote> </dd> </dt> <dt id="ini.request-order"> <span class="term"> <i><tt class="parameter">request_order</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> This directive describes the order in which PHP registers GET, POST and Cookie variables into the _REQUEST array. Registration is done from left to right, newer values override older values. </p> <p class="para"> If this directive is not set, variables_order is used for <var class="varname"><a href="reserved.variables.request.html" class="classname">$_REQUEST</a></var> contents. </p> </dd> </dt> <dt id="ini.auto-globals-jit"> <span class="term"> <i><tt class="parameter">auto_globals_jit</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <dd> <p class="para"> When enabled, the SERVER and ENV variables are created when they're first used (Just In Time) instead of when the script starts. If these variables are not used within a script, having this directive on will result in a performance gain. </p> <p class="para"> The PHP directives <a href="ini.core.html#ini.register-globals" class="link">register_globals</a>, <a href="ini.core.html#ini.register-long-arrays" class="link">register_long_arrays</a>, and <a href="ini.core.html#ini.register-argc-argv" class="link">register_argc_argv</a> must be disabled for this directive to have any affect. Since PHP 5.1.3 it is not necessary to have <a href="ini.core.html#ini.register-argc-argv" class="link">register_argc_argv</a> disabled. </p> <div class="warning"><b class="warning">Warning</b> <p class="para"> Usage of SERVER and ENV variables is checked during the compile time so using them through e.g. <a href="language.variables.variable.html" class="link">variable variables</a> will not cause their initialization. </p> </div> </dd> </dt> <dt id="ini.register-globals"> <span class="term"> <i><tt class="parameter">register_globals</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <dd> <p class="para"> Whether or not to register the EGPCS (Environment, GET, POST, Cookie, Server) variables as global variables. </p> <p class="para"> As of <a href="http://www.php.net/releases/4_2_0.php" class="link external">» PHP 4.2.0</a>, this directive defaults to <em class="emphasis">off</em>. </p> <p class="para"> Please read the security chapter on <a href="security.globals.html" class="link">Using register_globals</a> for related information. </p> <p class="para"> Please note that <code class="systemitem systemitem">register_globals</code> cannot be set at runtime (<a href="function.ini-set.html" class="function">ini_set()</a>). Although, you can use <var class="filename">.htaccess</var> if your host allows it as described above. An example <var class="filename">.htaccess</var> entry: <strong class="userinput"><code>php_flag register_globals off</code></strong>. </p> <blockquote><p><b class="note">Note</b>: <code class="systemitem systemitem">register_globals</code> is affected by the <a href="ini.core.html#ini.variables-order" class="link">variables_order</a> directive. <br /> </p></blockquote> <div class="warning"><b class="warning">Warning</b><p class="simpara">This feature has been<em class="emphasis">DEPRECATED</em> and <em class="emphasis">REMOVED</em> as of PHP 6.0.0.Relying on this feature is highly discouraged.</p></div> </dd>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -