cvs: phpdoc-zh /chapters config.xml
| From: | Dallas Thunder | Date: | Wed, 09 Jun 2004 01:02:19 +0000 |
| Subject: | cvs: phpdoc-zh /chapters config.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1866@lists.php.net to get a copy of this message | ||
dallas Tue Jun 8 21:02:19 2004 EDT
Modified files:
/phpdoc-zh/chapters config.xml
Log:
Updated
http://cvs.php.net/diff.php/phpdoc-zh/chapters/config.xml?r1=1.25&r2=1.26&ty=u Index: phpdoc-zh/chapters/config.xml diff -u phpdoc-zh/chapters/config.xml:1.25 phpdoc-zh/chapters/config.xml:1.26 --- phpdoc-zh/chapters/config.xml:1.25 Wed Dec 10 20:06:52 2003 +++ phpdoc-zh/chapters/config.xml Tue Jun 8 21:02:19 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.25 $ --> +<!-- $Revision: 1.26 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.112 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.118 Maintainer: dallas Status: ready --> <chapter id="configuration"> <title>ÔËÐÐʱÅäÖÃ</title> @@ -9,8 +9,8 @@ <title>ÅäÖÃÎļþ</title> <simpara> - µ± PHP Æô¶¯Ê±»á¶ÁÈ¡ÅäÖÃÎļþ£¨ÔÚ PHP 3.0 ÖгÆÎª - <filename>php3.ini</filename>£¬ÔÚ PHP 4.0 Öмò»¯Îª + µ± PHP Æô¶¯Ê±»á¶ÁÈ¡ÅäÖÃÎļþ£¨ÔÚ PHP 3 ÖгÆÎª + <filename>php3.ini</filename>£¬ÔÚ PHP 4 Öмò»¯Îª &php.ini;£©¡£¶ÔÓÚ·þÎñÆ÷Ä£¿é°æ±¾µÄ PHP ½öÔÚ web ·þÎñÆ÷Æô¶¯Ê±¶Áȡһ´Î¡£¶ÔÓÚ <acronym>CGI</acronym> ºÍ <acronym>CLI</acronym> °æ±¾£¬Ã¿´Îµ÷Óö¼»á¶ÁÈ¡¡£ @@ -21,9 +21,9 @@ <acronym>CGI</acronym> ºÍ <acronym>CLI</acronym> °æ±¾¿ÉÒÔͨ¹ýÃüÁîÐпª¹Ø <literal>-c</literal> À´¸Ä±ä£¬¼û - <literal>PHP</literal> µÄ<link + PHP µÄ<link linkend="features.commandline">ÃüÁîÐз½Ê½</link>Ò»Õ¡£Ò²¿ÉÒÔÓû·¾³±äÁ¿ - <literal>PHPRC</literal> À´É趨ѰÕÒ + <varname>PHPRC</varname> À´É趨ѰÕÒ &php.ini; ÎļþµÄÆäËü·¾¶¡£ </para> <note> @@ -33,19 +33,15 @@ </para> </note> <para> - ²¢²»ÊÇÿһ¸ö PHP µÄÖ¸Áî¶¼ÁÐÈëÁËÒÔÏÂÊÖ²áÖС£ËùÓÐÖ¸ÁîµÄÁбíÓë˵Ã÷¼û - &php.ini; ÎļþÖеÄ×¢ÊÍ¡£¿ÉÒÔ´Ó CVS Öв鿴<ulink - url="&url.php.cvs.phpini;">×îÐ嵀 php.ini</ulink>¡£ +The &php.ini; directives handled by extensions are documented respectively +on the pages of the extensions themselfs. The <link linkend="ini">list of +the core directives</link> is available in the appendix. Probably not all +the PHP directives are documented in the manual though. For a completel list +of directives available in your PHP version, please read your well commented +&php.ini; file. Alternatively, you may find the +<ulink url="&url.php.cvs.phpini;">the latest &php.ini;</ulink> from CVS +helpful too. </para> - <note> - <para> - ´Ó PHP <ulink url="&url.php.release4.2.0;">4.2.0</ulink> - Æð½« - <link linkend="ini.register-globals">register_globals</link> - µÄĬÈÏÖµ´Ó - <emphasis>on</emphasis> ¸Ä³ÉÁË <emphasis>off</emphasis>¡£ - </para> - </note> <para> <example> <title>&php.ini; Àý×Ó</title> @@ -57,7 +53,7 @@ ; true, on, yes ; or false, off, no, none register_globals = off -magic_quotes_gpc = yes +track_errors = yes ; you can enclose strings in double-quotes include_path = ".:/usr/local/lib/php" @@ -75,16 +71,17 @@ <title>ÔõÑù¸Ä±äÅäÖÃÑ¡Ïî</title> <sect2 id="configuration.changes.apache"> - <title>ÒÔ Apache Ä£¿é·½Ê½ÔËÐÐ <literal>PHP</literal></title> + <title>ÒÔ Apache Ä£¿é·½Ê½ÔËÐÐ PHP</title> <simpara> µ±ÒÔ Apache µÄÄ£¿é·½Ê½ÔËÐÐ PHP ʱ£¬Ò²¿ÉÒÔͨ¹ý Apache µÄÅäÖÃÎļþ£¨ÀýÈç &httpd.conf;£©ºÍ &htaccess; - ÎļþÖеÄÖ¸ÁîÀ´ÐÞ¸Ä PHP µÄÅäÖÃÑ¡ÏÐèÒª¡°AllowOverride Options¡±»ò¡°AllowOverride All¡±È¨ÏÞ£©¡£ + ÎļþÖеÄÖ¸ÁîÀ´ÐÞ¸Ä PHP µÄÅäÖÃÑ¡Ïî¡£ÕâÑù×öÐèÒª¡°AllowOverride + Options¡±»ò¡°AllowOverride All¡±È¨ÏÞ¡£ </simpara> <para> - ÔÚ PHP 4.0 ÖУ¬Óм¸¸ö Apache Ö¸Áî¿ÉÒÔÔÊÐíÔÚ Apache + ÔÚ PHP 4 ºÍ PHP 5 ÖУ¬Óм¸¸ö Apache Ö¸Áî¿ÉÒÔÔÊÐíÔÚ Apache µÄÅäÖÃÎļþÖÐÐÞ¸Ä PHP µÄÅäÖá£ÒªµÃµ½ÄÄЩָÁî·Ö±ðÊôÓÚ <constant>PHP_INI_ALL</constant>£¬<constant>PHP_INI_PERDIR</constant> »ò <constant>PHP_INI_SYSTEM</constant> @@ -93,7 +90,7 @@ <note> <simpara> - ÔÚ PHP 3.0 ÖУ¬Ò²ÓÐºÍ + ÔÚ PHP 3 ÖУ¬Ò²ÓÐºÍ <filename>php3.ini</filename> ÖÐÑ¡ÏîÏà¶ÔÓ¦µÄ Apache Ö¸Áֻ²»¹ý¼ÓÉÏǰ׺¡°php3_¡±¡£ </simpara> @@ -115,8 +112,8 @@ </para> <note> <simpara> - ²»ÒªÓà <literal>php_value</literal> À´É趨²¼¶ûÖµ¡£Ó¦¸ÃÓà - <literal>php_flag</literal>£¨¼ûÏÂÃæ£©À´Ìæ´ú¡£ + ²»ÒªÓà <systemitem role="directive">php_value</systemitem> À´É趨²¼¶ûÖµ¡£Ó¦¸ÃÓà + <systemitem role="directive">php_flag</systemitem>£¨¼ûÏÂÃæ£©À´Ìæ´ú¡£ </simpara> </note> </listitem> @@ -143,7 +140,7 @@ </term> <listitem> <para> - É趨ָ¶¨Ö¸ÁîµÄÖµ¡£²»ÄÜÔÚ &htaccess; ÎļþÖÐʹÓá£ÈκÎÔÚ + É趨ָ¶¨Ö¸ÁîµÄÖµ¡£<emphasis>²»ÄÜÓÃÓÚ</emphasis> &htaccess; ÎļþÖС£ÈκÎÔÚ <systemitem role="directive">php_admin_value</systemitem> ÖÐÉ趨µÄÖµ²»Äܱ» &htaccess; »òÕß virtualhost ÖеÄÖ¸Á¸Ç¡£ÒªÇå³ýÉÏÒ»¸öÉ趨µÄÖµ£¬½«ÖµÉèΪ <literal>none</literal>¡£ @@ -158,7 +155,7 @@ </term> <listitem> <para> - ÓÃÓÚÉ趨²¼¶ûÖµÀàÐ͵ÄÅäÖÃÖ¸Áî¡£²»ÄÜÔÚ &htaccess; ÎļþÖÐʹÓá£ÈκÎÔÚ + ÓÃÓÚÉ趨²¼¶ûÖµÀàÐ͵ÄÅäÖÃÖ¸Áî¡£<emphasis>²»ÄÜÓÃÓÚ</emphasis> &htaccess; ÎļþÖС£ÈκÎÔÚ <systemitem role="directive">php_admin_flag</systemitem> ÖÐÉ趨µÄÖµ²»Äܱ» &htaccess; »òÕß virtualhost ÖеÄÖ¸Á¸Ç¡£ </para> @@ -171,6 +168,10 @@ <title>Apache ÅäÖÃÀý×Ó</title> <programlisting role="ini"> <![CDATA[ +<IfModule mod_php5.c> + php_value include_path ".:/usr/local/lib/php" + php_admin_flag safe_mode on +</IfModule> <IfModule mod_php4.c> php_value include_path ".:/usr/local/lib/php" php_admin_flag safe_mode on @@ -199,7 +200,7 @@ </sect2> <sect2 id="configuration.changes.windows"> - <title>ͨ¹ýÐÞ¸Ä Windows ×¢²á±íÀ´¸Ä±ä <literal>PHP</literal> ÅäÖÃ</title> + <title>ͨ¹ýÐÞ¸Ä Windows ×¢²á±íÀ´¸Ä±ä PHP ÅäÖÃ</title> <simpara> ÔÚ Windows ÏÂÔËÐÐ PHP ʱ£¬¿ÉÒÔͨ¹ý Windows ×¢²á±íÀ´ÐÞ¸Äÿ¸öĿ¼µÄÅäÖÃÑ¡Ïî¡£ÅäÖõÄÖµ´æ·ÅÓÚ×¢²á±íµÄ @@ -208,1112 +209,27 @@ <literal>c:\inetpub\wwwroot</literal> µÄÅäÖÃÖµ´æ·ÅÓÚ <literal>HKLM\SOFTWARE\PHP\Per Directory Values\c\inetpub\wwwroot</literal>¡£¶ÔÓÚĿ¼µÄÉèÖý«»áÔÚÈκÎÔÚ´ËĿ¼¼°Æä×ÓĿ¼ÏÂÔËÐеĽű¾¼¤»î¡£¶ÔÓ¦¼üÃûÓ¦¸ÃºÍ - <link linkend="configuration">PHP ÅäÖÃÑ¡Ïî</link>Ïàͬ²¢ÇÒ¾ßÓÐ×Ö·û´®Öµ¡£ÖµÖÐµÄ + PHP ÅäÖÃÑ¡ÏîÏàͬ²¢ÇÒ¾ßÓÐ×Ö·û´®Öµ¡£ÖµÖÐµÄ PHP ³£Á¿²»»á±»½âÎö¡£ </simpara> </sect2> <sect2 id="configuration.changes.other"> - <title>ÆäËü <literal>PHP</literal> ½Ó¿Ú</title> - <para> - ²»ÂÛ <literal>PHP</literal> - µÄ½Ó¿ÚÊÇʲô¶¼¿ÉÒÔÔڽű¾Ö´Ðйý³ÌÖÐͨ¹ý - <function>ini_set</function> - À´ÐÞ¸ÄһЩֵ¡£Ï±íÌṩÁËÖ¸Áî¿ÉÒÔÔÚÄÄÒ»¼¶±»É趨/Ð޸ĵĸÅÀÀ¡£ - </para> - <para> - <table> - <title>PHP_INI_* ³£Á¿µÄ¶¨Òå</title> - <tgroup cols="3"> - <thead> - <row> - <entry>³£Á¿</entry> - <entry>Öµ</entry> - <entry>º¬Òå</entry> - </row> - </thead> - <tbody> - <row> - <entry>PHP_INI_USER</entry> - <entry>1</entry> - <entry>¸ÃÏîÄ¿¿ÉÒÔÔÚÓû§½Å±¾ÖÐÉ趨</entry> - </row> - <row> - <entry>PHP_INI_PERDIR</entry> - <entry>2</entry> - <entry> - ¸ÃÏîÄ¿¿ÉÒÔÔÚ &php.ini;£¬&htaccess; »òÕß - &httpd.conf; ÖÐÉ趨 - </entry> - </row> - <row> - <entry>PHP_INI_SYSTEM</entry> - <entry>4</entry> - <entry> - ¸ÃÏîÄ¿¿ÉÒÔÔÚ &php.ini; »ò &httpd.conf; ÖÐÉ趨 - </entry> - </row> - <row> - <entry>PHP_INI_ALL</entry> - <entry>7</entry> - <entry>¸ÃÏîÄ¿¿ÉÒÔÔÚÈκεط½É趨</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - <para> - ¿ÉÒÔÔÚ - <function>phpinfo</function> - µÄÊä³öÖв鿴ÅäÖÃÑ¡ÏîµÄÖµ¡£Ò²¿ÉÒÔÓà - <function>ini_get</function> »ò <function>get_cfg_var</function> - À´µ¥¸ö·ÃÎÊÅäÖÃÖ¸ÁîµÄÖµ¡£ - </para> - </sect2> - </sect1> - - <sect1 id="configuration.directives"> - <title>¸÷ÖÖÅäÖÃÖ¸Áî</title> - <para> - ÕâÀï²¢²»ÊÇÈ«²¿ PHP Ö¸ÁîµÄÁÐ±í¡£¸÷ÖÖÖ¸Áî±»ÁÐÔÚÆäÏàÓ¦µÄλÖã¬ÀýÈçÓÐ¹Ø - session Ö¸ÁîµÄÐÅÏ¢¾ÍÔÚ <link linkend="ref.session">sessions</link> Ò»ÕÂÖС£ - </para> - - <sect2 id="ini.sect.httpd-options"> - <title>Httpd Ñ¡Ïî</title> - <para> - <table> - <title>Httpd Ñ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>Àà±ð</entry> - </row> - </thead> - <tbody> - <row> - <entry>async_send</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - <para> - </para> - </sect2> - - <sect2 id="ini.sect.language-options"> - <title>ÓïÑÔÑ¡Ïî</title> - <para> - <table> - <title>ÓïÑÔºÍÔÓÀàÅäÖÃÑ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>Àà±ð</entry> - </row> - </thead> - <tbody> - <row> - <entry>short_open_tag</entry> - <entry>On</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>asp_tags</entry> - <entry>Off</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>precision</entry> - <entry>"14"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>y2k_compliance</entry> - <entry>Off</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>allow_call_time_pass_reference</entry> - <entry>On</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>expose_php</entry> - <entry>On</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - &ini.descriptions.title; - <para> - <variablelist> - <varlistentry id="ini.short-open-tag"> - <term> - <parameter>short_open_tag</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ¾ö¶¨ÊÇ·ñÔÊÐíʹÓà PHP ´úÂ뿪ʼ±êÖ¾µÄËõдÐÎʽ£¨<userinput><? - ?></userinput>£©¡£Èç¹ûÒªºÍ XML ½áºÏʹÓà - PHP£¬¿ÉÒÔ½ûÓôËÑ¡ÏîÒÔ±ãÓÚǶÈëʹÓà - <userinput><?xml ?></userinput>¡£·ñÔò»¹¿ÉÒÔͨ¹ý - PHP À´Êä³ö£¬ÀýÈ磺<userinput><?php echo '<?xml - version="1.0"'; ?></userinput>¡£Èç¹û½ûÓÃÁË£¬±ØÐëʹÓà - PHP ´úÂ뿪ʼ±êÖ¾µÄÍêÕûÐÎʽ£¨<userinput><?php - ?></userinput>£©¡£ - </para> - <note> - <para> - ±¾Ö¸ÁîÒ²»áÓ°Ïìµ½ËõдÐÎʽ - <userinput><?=</userinput>£¬ËüºÍ - <userinput><? echo</userinput> µÈ¼Û¡£Ê¹ÓôËËõдÐèÒª - <systemitem role="directive">short_open_tag</systemitem> - µÄֵΪ On¡£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.asp-tags"> - <term> - <parameter>asp_tags</parameter> - <type>boolean</type> - </term> - <listitem> - <simpara> - ³ýÁËͨ³£µÄ - <?php ?> - ±êÖ¾Ö®Í⻹ÔÊÐíʹÓà - ASP ·ç¸ñµÄ±êÖ¾ <% %>¡£ÕâÒ²°üÀ¨ÁËÊä³ö±äÁ¿ÖµµÄËõд - <%= $value %>¡£¸ü¶àÐÅÏ¢¼û<link - linkend="language.basic-syntax.phpmode">´Ó HTML ÖзÖÀë</link>Ò»½Ú¡£ - </simpara> - <note> - <para> - ASP ·ç¸ñ±êÖ¾µÄÖ§³ÖÊÇ 3.0.4 °æÐ¼ӵġ£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.precision"> - <term> - <parameter>precision</parameter> - <type>integer</type> - </term> - <listitem> - <simpara> - ¸¡µãÊýÖÐÏÔʾÓÐЧÊý×ÖµÄλÊý¡£ - </simpara> - </listitem> - </varlistentry> - - <varlistentry id="ini.y2k-compliance"> - <term> - <parameter>y2k_compliance</parameter> - <type>boolean</type> - </term> - <listitem> - <simpara> - Ç¿ÖÆ 2000 Äê¼æÈÝ£¨ÔÚ²»¼æÈݵÄä¯ÀÀÆ÷Öлá³öÎÊÌ⣩¡£ - </simpara> - </listitem> - </varlistentry> - - - <varlistentry id="ini.allow-call-time-pass-reference"> - <term> - <parameter>allow_call_time_pass_reference</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ÊÇ·ñÆôÓÃÔÚº¯Êýµ÷ÓÃÊ±Ç¿ÖÆ²ÎÊý±»°´ÕÕÒýÓô«µÝ¡£´Ë·½·¨ÒѲ»±»Ô޳ɲ¢ÔÚ - PHP/Zend δÀ´µÄ°æ±¾ÖкܿÉÄܲ»ÔÙÖ§³Ö¡£¹ÄÀøÊ¹Óõķ½·¨ÊÇÔÚº¯Êý¶¨ÒåÖÐÖ¸¶¨ÄÄЩ²ÎÊýÓ¦¸ÃÓÃÒýÓô«µÝ¡£¹ÄÀø´ó¼Ò³¢ÊԹرմËÑ¡Ïȷ±£½Å±¾Äܹ»Õý³£ÔËÐУ¬ÒÔÈ·±£¸Ã½Å±¾Ò²ÄÜÔÚδÀ´µÄ°æ±¾ÖÐÔËÐУ¨Ã¿´ÎʹÓôËÌØÐÔ¶¼»áÊÕµ½Ò»Ìõ¾¯¸æ£¬²ÎÊý»á±»°´Öµ´«µÝ¶ø²»Êǰ´ÕÕÒýÓô«µÝ£©¡£ - </para> - <para> - ²Î¼û<link linkend="language.references">ÒýÓõĽâÊÍ</link>¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.expose-php"> - <term> - <parameter>expose_php</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ¾ö¶¨ÊÇ·ñ±©Â¶ PHP ±»°²×°ÔÚ·þÎñÆ÷ÉÏ£¨ÀýÈçÔÚ Web - ·þÎñÆ÷µÄÐÅϢͷÖмÓÉÏÆäÇ©Ãû£©¡£Ã»ÓÐÈκΰ²È«ÉϵÄÍþв£¬Ö»ÊÇÈÿͻ§¶ËÄܹ»ÖªµÀÊÇ·ñÔÚ·þÎñÆ÷Öа²×°ÁË - PHP¡£ - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </sect2> - - <sect2 id="ini.sect.resource-limits"> - <title>×ÊÔ´ÏÞÖÆ</title> - <para> - <table> - <title>×ÊÔ´ÏÞÖÆ</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>ÀàÐÍ</entry> - </row> - </thead> - <tbody> - <row> - <entry>memory_limit</entry> - <entry>"8M"</entry> - <entry>PHP_INI_ALL</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - &ini.descriptions.title; - <para> - <variablelist> - <varlistentry id="ini.memory-limit"> - <term> - <parameter>memory_limit</parameter> - <type>integer</type> - </term> - <listitem> - <para> - ±¾Ö¸ÁîÉ趨ÁËÒ»¸ö½Å±¾ËùÄܹ»ÉêÇëµ½µÄ×î´óÄÚ´æ×Ö½ÚÊý¡£ÕâÓÐÖúÓÚ·ÀֹдµÃ²»ºÃµÄ½Å±¾ÏûºÄ¹â·þÎñÆ÷ÉϵĿÉÓÃÄڴ档ҪʹÓôËÖ¸Áî±ØÐëÔÚ±àÒëµÄʱºò¼¤»î¡£Òò´Ë - configure - Ò»ÐÐÖÐÓ¦¸Ã°üÀ¨£º<literal>--enable-memory-limit</literal>¡£Èç¹û²»ÐèÒªÈκÎÄÚ´æÉϵÄÏÞÖÆ£¬±ØÐ뽫ÆäÉèΪ - -1¡£ - </para> - <para> - ×Ô 4.3.2 Æð£¬µ±¼¤»îÁË memory_limit£¬PHP º¯Êý - <function>memory_get_usage</function> ³ÉΪ¿ÉÓᣠ- </para> - </listitem> - </varlistentry> - </variablelist> - </para> - <para> - ²Î¼û <link linkend="ini.max-execution-time">max_execution_time</link>¡£ - </para> - </sect2> - - <sect2 id="ini.sect.data-handling"> - <title>Êý¾Ý´¦Àí</title> - <para> - <table> - <title>Êý¾Ý´¦ÀíÅäÖÃÑ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>ÀàÐÍ</entry> - </row> - </thead> - <tbody> - <row> - <entry>track-vars</entry> - <entry>"On"</entry> - <entry>PHP_INI_??</entry> - </row> - <row> - <entry>arg_separator.output</entry> - <entry>"&"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>arg_separator.input</entry> - <entry>"&"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>variables_order</entry> - <entry>"EGPCS"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>register_globals</entry> - <entry>"Off"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>register_argc_argv</entry> - <entry>"On"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>register_long_arrays</entry> - <entry>"On"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>post_max_size</entry> - <entry>"8M"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>gpc_order</entry> - <entry>"GPC"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>auto_prepend_file</entry> - <entry>""</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>auto_append_file</entry> - <entry>""</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>default_mimetype</entry> - <entry>"text/html"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>default_charset</entry> - <entry>"iso-8859-1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>always_populate_raw_post_data</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>allow_webdav_methods</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - &ini.descriptions.title; - <para> - <variablelist> - <varlistentry id="ini.track-vars"> - <term> - <parameter>track_vars</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - Èç¹û¼¤»î£¬Ôò»·¾³±äÁ¿£¬GET£¬POST£¬Cookie ºÍ Server - ±äÁ¿¶¼Äܹ»·Ö±ðÔÚÈ«¾Ö¹ØÁªÊý×éÖÐÕÒµ½£º<varname>$_ENV</varname>£¬<varname>$_GET</varname>£¬<varname>$_POST</varname>£¬<varname>$_COOKIE</varname> ºÍ - <varname>$_SERVER</varname>¡£ - </para> - <para> - ×¢Òâ×Ô PHP 4.0.3 Æð£¬<systemitem - role="directive">track_vars</systemitem> ×ÜÊÇ´ò¿ªµÄ¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.arg-separator.output"> - <term> - <parameter>arg_separator.output</parameter> - <type>string</type> - </term> - <listitem> - <para> - PHP Ëù²úÉúµÄ URL ÖÐÀ´·Ö¸ô²ÎÊýµÄ·Ö¸ô·û¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.arg-separator.input"> - <term> - <parameter>arg_separator.input</parameter> - <type>string</type> - </term> - <listitem> - <para> - PHP ÓÃÀ´½« URL ½âÎöΪ±äÁ¿µÄ·Ö¸ô·ûÁÐ±í¡£ - </para> - <note> - <para> - ±¾Ö¸ÁîÖеÄÿ¸ö×Ö·û¶¼»á±»µ±³É·Ö¸ô·û£¡ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.variables-order"> - <term> - <parameter>variables_order</parameter> - <type>string</type> - </term> - <listitem> - <para> - É趨 EGPCS£¨Environment£¬GET£¬POST£¬Cookie£¬Server£©±äÁ¿½âÎöµÄ˳Ðò¡£Ä¬ÈÏÉ趨Ϊ¡°EGPCS¡±¡£¾ÙÀý˵£¬½«ÆäÉèΪ¡°GP¡±£¬»áµ¼Ö - PHP ÍêÈ«ºöÂÔ»·¾³±äÁ¿£¬cookies ºÍ server ±äÁ¿£¬²¢Óà GET - ·½·¨µÄ±äÁ¿¸²¸Ç POST ·½·¨µÄͬÃû±äÁ¿¡£ - </para> - <para> - ²Î¼û <link linkend="ini.register-globals">register_globals</link>¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.register-globals"> - <term> - <parameter>register_globals</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ¾ö¶¨ÊÇ·ñ½« - EGPCS£¨Environment£¬GET£¬POST£¬Cookie£¬Server£©±äÁ¿×¢²áΪȫ¾Ö±äÁ¿¡£ÀýÈ磬Èç¹û - register_globals = on£¬ÄÇô URL - <literal>http://www.example.com/test.php?id=3</literal> - ½«²úÉú - <varname>$id</varname>¡£»òÕß´Ó - <varname>$_SERVER['DOCUMENT_ROOT']</varname> - µÃÀ´ - <varname>$DOCUMENT_ROOT</varname>¡£Èç¹û²»ÏëÓû§Êý¾Ý°ÑÈ«¾ÖÓòŪÂҵϰ¿ÉÒÔ½«´ËÑ¡Ïî¹Ø±Õ¡£×Ô - PHP <ulink url="&url.php.release4.2.0;">4.2.0</ulink> - ¿ªÊ¼£¬±¾Ö¸ÁîĬÈÏΪ - <emphasis>off</emphasis>¡£ÍƼöʹÓà PHP - µÄ<link linkend="reserved.variables">Ô¤¶¨Òå±äÁ¿</link>À´Ìæ´ú£¬ÀýÈç<link - linkend="language.variables.superglobals">³¬È«¾Ö±äÁ¿</link>£º<varname>$_ENV</varname>£¬<varname>$_GET</varname>£¬<varname>$_POST</varname>£¬<varname>$_COOKIE</varname> ºÍ - <varname>$_SERVER</varname>¡£Ïà¹ØÐÅÏ¢ÇëÔĶÁ°²È«Ò»ÕÂÖеÄ<link - linkend="security.registerglobals">ʹÓà register_globals</link>¡£ - </para> - <para> - Çë×¢Òâ - <systemitem role="directive">register_globals</systemitem> - ²»ÄÜÔÚÔËÐÐʱÉ趨£¨<function>ini_set</function>£©£¬¾¡¹ÜÈçÒÔÉÏ˵Ã÷ÔÚÖ÷»úÔÊÐíʱ¿ÉÒÔÓà - &htaccess;¡£Ò»¸ö - &htaccess; ÏîÄ¿µÄÀý×Ó£º<userinput>php_flag register_globals on</userinput>¡£ - </para> - <note> - <para> - <systemitem role="directive">register_globals</systemitem> - ÊÜ - <link linkend="ini.variables-order">variables_order</link> - Ö¸ÁîµÄÓ°Ïì¡£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.register-argc-argv"> - <term> - <parameter>register_argc_argv</parameter> - <type>boolean</type> - </term> - <listitem> - <simpara> - ¾ö¶¨ PHP ÊÇ·ñ¶¨Òå argv & argc ±äÁ¿£¨¿ÉÄܰüº¬ÓÐ GET ÐÅÏ¢£©¡£ - </simpara> - <simpara> - ²Î¼û<link linkend="features.commandline">ÃüÁîÐз½Ê½</link>¡£´ËÍ⣬±¾Ñ¡Ïî×Ô - PHP 4.0.0 Æð¿ÉÓã¬ÔÚ´Ë֮ǰ×ÜÊÇ¡°On¡±¡£ - </simpara> - </listitem> - </varlistentry> - - <varlistentry id="ini.register-long-arrays"> - <term> - <parameter>register_long_arrays</parameter> - <type>boolean</type> - </term> - <listitem> - <simpara> - É趨 PHP ÊÇ·ñ×¢²áÒѹýʱµÄ <varname>$HTTP_*_VARS</varname> Ö®ÀàµÄ<link - linkend="language.variables.predefined">Ô¤¶¨Òå±äÁ¿</link>¡£Èç¹ûΪ - On£¨Ä¬ÈÏÖµ£©£¬ÔòÀàËÆ <varname>$HTTP_GET_VARS</varname> - µÄ PHP ±äÁ¿»á±»×¢²á¡£Èç¹û²»Ê¹Óã¬ÎªÐÔÄÜ¿¼Âǽ¨Ò鹨±Õ´ËÑ¡Ï¶øÊ¹Óó¬È«¾ÖÊý×éÀýÈç - <varname>$_GET</varname> Ìæ´úÖ®¡£ - </simpara> - <simpara> - ±¾Ö¸Áî×Ô PHP 5.0.0 Æð¿ÉÓᣠ- </simpara> - </listitem> - </varlistentry> - - <varlistentry id="ini.post-max-size"> - <term> - <parameter>post_max_size</parameter> - <type>integer</type> - </term> - <listitem> - <simpara> - É趨 POST Êý¾ÝËùÔÊÐíµÄ×î´ó´óС¡£´ËÉ趨ҲӰÏìµ½ÎļþÉÏ´«¡£ÒªÉÏ´«´óÎļþ£¬¸ÃÖµ±ØÐë´óÓÚ - <link linkend="ini.upload-max-filesize">upload_max_filesize</link>¡£ - </simpara> - <simpara> - Èç¹ûÅäÖýű¾Ö줻îÁËÄÚ´æÏÞÖÆ£¬<link - linkend="ini.memory-limit">memory_limit</link> - Ò²»áÓ°ÏìÎļþÉÏ´«¡£Í¨³£Ëµ£¬<link linkend="ini.memory-limit">memory_limit</link> - Ó¦¸Ã±È - <parameter>post_max_size</parameter> Òª´ó¡£ - </simpara> - </listitem> - </varlistentry> - - <varlistentry id="ini.gpc-order"> - <term> - <parameter>gpc_order</parameter> - <type>string</type> - </term> - <listitem> - <para> - É趨 GET/POST/COOKIE ±äÁ¿½âÎöµÄ˳Ðò£¬Ä¬ÈÏΪ¡°GPC¡±¡£¾ÙÀý˵£¬½«ÆäÉèΪ¡°GP¡±£¬»áµ¼Ö - PHP ÍêÈ«ºöÂÔ cookie ±äÁ¿£¬²¢Óà GET - ·½·¨µÄ±äÁ¿¸²¸Ç POST ·½·¨µÄͬÃû±äÁ¿¡£ - </para> - <note> - <para> - ±¾Ñ¡Ïî²»ÄÜÓÃÓÚ PHP 4¡£Óà - <link linkend="ini.variables-order">variables_order</link> Ìæ´úÖ®¡£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.auto-prepend-file"> - <term> - <parameter>auto_prepend_file</parameter> - <type>string</type> - </term> - <listitem> - <para> - Ö¸¶¨ÔÚÖ÷Îļþ֮ǰ×Ô¶¯½âÎöµÄÎļþÃû¡£¸ÃÎļþ¾ÍÏñµ÷ÓÃÁË - <function>include</function> º¯ÊýÒ»Ñù±»°üº¬½øÀ´£¬Òò´Ë»áʹÓà - <link linkend="ini.include-path">include_path</link>¡£ - </para> - <para> - ÌØÊâÖµ <systemitem class="constant">none</systemitem> - ½ûÖ¹ÁË×Ô¶¯Ç°×º¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.auto-append-file"> - <term> - <parameter>auto_append_file</parameter> - <type>string</type> - </term> - <listitem> - <para> - Ö¸¶¨ÔÚÖ÷ÎļþÖ®ºó×Ô¶¯½âÎöµÄÎļþÃû¡£¸ÃÎļþ¾ÍÏñµ÷ÓÃÁË - <function>include</function> º¯ÊýÒ»Ñù±»°üº¬½øÀ´£¬Òò´Ë»áʹÓà - <link linkend="ini.include-path">include_path</link>¡£ - </para> - <para> - ÌØÊâÖµ <systemitem class="constant">none</systemitem> - ½ûÖ¹ÁË×Ô¶¯ºó׺¡£ - <note> - <simpara> - Èç¹û½Å±¾Í¨¹ý - <function>exit</function> ÖÕÖ¹£¬Ôò×Ô¶¯ºó׺<emphasis>²»»á</emphasis>·¢Éú¡£ - </simpara> - </note> - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.default-mimetype"> - <term> - <parameter>default_mimetype</parameter> - <type>string</type> - </term> - <listitem> - <para> - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.default-charset"> - <term> - <parameter>default_charset</parameter> - <type>string</type> - </term> - <listitem> - <para> - ×Ô 4.0b4 Æð£¬PHP ×ÜÊÇĬÈÏÔÚ HTTP ÐÅϢͷ - Content-type: ÖÐÊä³ö×Ö·û±àÂë¡£Òª½ûÖ¹·¢ËÍ×Ö·û¼¯£¬½«±¾Ñ¡ÏîÉèΪ¿Õ¼´¿É¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.always-populate-raw-post-data"> - <term> - <parameter>always_populate_raw_post_data</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ×ÜÊÇÔö¼Ó $HTTP_RAW_POST_DATA ±äÁ¿¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.allow-webdav-methods"> - <term> - <parameter>allow_webdav_methods</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ÔÊÐíÔÚ PHP ½Å±¾Öд¦Àí - WebDAV µÄ HTTP ÇëÇó£¨ÀýÈç - PROPFIND£¬PROPPATCH£¬MOVE£¬COPY µÈ£©¡£Èç¹ûҪȡµÃÕâЩÇëÇóµÄ - POST Êý¾Ý£¬Ò²ÒªÉ趨 - <link linkend="ini.always-populate-raw-post-data">always_populate_raw_post_data</link>¡£ - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - <para> - ²Î¼û - <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link>£¬<link linkend="ini.magic-quotes-runtime">magic-quotes-runtime</link> ºÍ - <link linkend="ini.magic-quotes-sybase">magic_quotes_sybase</link>¡£ - </para> - </sect2> - - <sect2 id="ini.sect.path-directory"> - <title>·¾¶ºÍĿ¼</title> - <para> - <table> - <title>·¾¶ºÍĿ¼ÅäÖÃÑ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>ÀàÐÍ</entry> - </row> - </thead> - <tbody> - <row> - <entry>include_path</entry> - <entry>PHP_INCLUDE_PATH</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>doc_root</entry> - <entry>PHP_INCLUDE_PATH</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>user_dir</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>extension_dir</entry> - <entry>PHP_EXTENSION_DIR</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>cgi.fix_pathinfo</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>cgi.force_redirect</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>cgi.redirect_status_env</entry> - <entry>""</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>fastcgi.impersonate</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>cgi.rfc2616_headers</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - &ini.descriptions.title; - <para> - <variablelist> - <varlistentry id="ini.include-path"> - <term> - <parameter>include_path</parameter> - <type>string</type> - </term> - <listitem> - <para> - Ö¸¶¨Ò»×éĿ¼ÓÃÓÚ - <function>require</function>£¬<function>include</function> ºÍ - <function>fopen_with_path</function> - º¯ÊýÀ´Ñ°ÕÒÎļþ¡£¸ñʽºÍϵͳµÄ - <envar>PATH</envar> - »·¾³±äÁ¿ÀàËÆ£ºÒ»×éĿ¼µÄÁÐ±í£¬ÔÚ UNIX ÏÂÓÃðºÅ·Ö¸ô£¬ÔÚ - Windows ÏÂÓ÷ֺŷָô¡£ - </para> - <para> - <example> - <title>UNIX include_path</title> - <programlisting role="php.ini"> -<![CDATA[ -include_path=".:/php/includes" -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Windows include_path</title> - <programlisting role="php.ini"> -<![CDATA[ -include_path=".;c:\php\includes" -]]> - </programlisting> - </example> - </para> - <para> - ÔÚ°üº¬Â·¾¶ÖÐʹÓà <literal>.</literal> - ¿ÉÒÔÔÊÐíÏà¶Ô·¾¶£¬Ëü´ú±íµ±Ç°Ä¿Â¼¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.doc-root"> - <term> - <parameter>doc_root</parameter> - <type>string</type> - </term> - <listitem> - <para> - PHP ÔÚ·þÎñÆ÷ÉϵĸùĿ¼¡£½öÔÚ·Ç¿ÕʱʹÓá£Èç¹û - PHP ±»ÅäÖÃΪ&safemode;£¬Ôò´ËĿ¼֮ÍâµÄÎļþÒ»¸Å²»±»½âÎö¡£Èç¹û - PHP ±àÒëʱûÓÐÖ¸¶¨ FORCE_REDIRECT£¬²¢ÇÒÔÚÈκΠweb - ·þÎñÆ÷£¨³ýÁË IIS£©ÖÐÒÔ CGI - ·½Ê½ÔËÐÐ PHP£¬ÔòÓ¦¸ÃÉ趨 doc_root¡£Ìæ´ú·½°¸ÊÇʹÓÃÏÂÃæµÄ - <link linkend="ini.cgi.force-redirect">cgi.force_redirect</link> - ÅäÖÃÑ¡Ïî¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.user-dir"> - <term> - <parameter>user_dir</parameter> - <type>string</type> - </term> - <listitem> - <para> - ÔÚÓû§Ä¿Â¼Ö®ÏÂʹÓà <literal>PHP</literal> - ÎļþµÄ»ù±¾Ä¿Â¼Ãû£¬ÀýÈç - <literal>public_html</literal>¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.extension-dir"> - <term> - <parameter>extension_dir</parameter> - <type>string</type> - </term> - <listitem> - <para> - PHP ÓÃÀ´Ñ°ÕÒ¶¯Ì¬Á¬½ÓÀ©Õ¹¿âµÄĿ¼¡£²Î¼û - <link linkend="ini.enable-dl">enable_dl</link> ºÍ - <function>dl</function>¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.extension"> - <term> - <parameter>extension</parameter> - <type>string</type> - </term> - <listitem> - <para> - µ± PHP Æô¶¯Ê±Ëù¼ÓÔØµÄ¶¯Ì¬Á¬½ÓÀ©Õ¹¿â¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.cgi.fix_pathinfo"> - <term> - <parameter>cgi.fix_pathinfo</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ¶Ô CGI ÌṩÁË<emphasis>ÕæÕýµÄ</emphasis> PATH_INFO/PATH_TRANSLATED - Ö§³Ö¡£ÒÔǰ PHP µÄÐÐΪÊǽ« PATH_TRANSLATED ÉèΪ - SCRIPT_FILENAME£¬¶ø²»¹Ü PATH_INFO ÊÇʲô¡£ÓÐ¹Ø PATH_INFO - µÄ¸ü¶àÐÅÏ¢¼û cgi ¹æ¸ñ¡£½«´ËÖµÉèΪ 1 ½«Ê¹ PHP CGI - ÐÞÕýÆä·¾¶ÒÔ×ñÊØ¹æ¸ñ¡£ÉèΪ 0 ½«Ê¹ PHP - µÄÐÐΪºÍ´ÓǰһÑù¡£Ä¬ÈÏΪÁã¡£Óû§Ó¦¸ÃÐÞÕýÆä½Å±¾Ê¹Óà SCRIPT_FILENAME - ¶ø²»ÊÇ PATH_TRANSLATED¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.cgi.force-redirect"> - <term> - <parameter>cgi.force_redirect</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ÔÚ´ó¶àÊý web ·þÎñÆ÷ÖÐÒÔ CGI ·½Ê½ÔËÐÐ PHP - ʱºÜÓбØÒªÓà cgi.force_redirect Ìṩ°²È«¡£PHP - ĬÈÏÆäΪ On¡£¿ÉÒÔ½«Æä¹Ø±Õ£¬µ«<emphasis>·çÏÕ×Ôµ£</emphasis>¡£ - </para> - <note> - <para> - Windows Óû§£º¿ÉÒÔ°²È«µØÔÚ IIS ֮Ͻ«Æä¹Ø±Õ£¬ÊÂʵÉϱØÐëÕâô×ö¡£ÒªÔÚ - OmniHTTPD »ò Xitami Ö®ÏÂʹÓÃÒ²±ØÐ뽫Æä¹Ø±Õ¡£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.cgi.redirect-status-env"> - <term> - <parameter>cgi.redirect_status_env</parameter> - <type>string</type> - </term> - <listitem> - <para> - Èç¹û´ò¿ªÁË cgi.force_redirect£¬²¢ÇÒ²»ÊÇÔÚ - Apache »ò Netscape£¨iPlanet£©web - ·þÎñÆ÷Ö®ÏÂÔËÐУ¬¿ÉÄÜÐèÒªÉ趨һ¸ö»·¾³±äÁ¿Ãû£¬PHP - ½«È¥Ñ°ÕÒËüÀ´ÖªµÀ¿ÉÒÔ¼ÌÐøÖ´ÐÐÏÂÈ¥¡£ - </para> - <note> - <para> - É趨´Ë±äÁ¿¿ÉÄܻᵼÖ°²È«ÎÊÌ⣬Ê×ÏÈÒªÖªµÀ×Ô¼ºÔÚ×öʲô¡£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.fastcgi.impersonate"> - <term> - <parameter>fastcgi.impersonate</parameter> - <type>string</type> - </term> - <listitem> - <para> - IIS£¨ÔÚ»ùÓÚ WINNT µÄ²Ù×÷ϵͳÉÏ£©ÖÐµÄ FastCGI - Ö§³ÖÄ£·Â¿Í»§¶Ë°²È«ÁîÅÆµÄÄÜÁ¦¡£ÕâʹµÃ IIS - Äܹ»¶¨ÒåÔËÐÐʱËù»ùÓÚµÄÇëÇóµÄ°²È«ÉÏÏÂÎÄ¡£Apache - ÖÐµÄ mod_fastcgi ²»Ö§³Ö´ËÌØÐÔ£¨03/17/2002£©¡£Èç¹ûÔÚ - IIS ÖÐÔËÐÐÔòÉèΪ 1¡£Ä¬ÈÏΪ 0¡£ - </para> - </listitem> - </varlistentry> - <varlistentry id="ini.cgi.rfc2616-headers"> - <term> - <parameter>cgi.rfc2616_headers</parameter> - <type>int</type> - </term> - <listitem> - <para> - Ö¸¶¨ PHP ÔÚ·¢ËÍ HTTP ÏìÓ¦´úÂëʱʹÓúÎÖÖ±¨Í·¡£Èç¹ûÉ趨Ϊ 0£¬PHP - ·¢ËÍÒ»¸ö Status: ±¨Í·£¬Apache ºÍÆäËü web server ¶¼Ö§³Ö¡£Èç¹û´ËÑ¡ÏîÉ趨Ϊ 1£¬PHP - ½«·¢ËÍ <ulink url="&url.rfc;2616">RFC 2616</ulink> - ¼æÈݵı¨Í·¡£³ý·ÇÄãÖªµÀ×Ô¼ºÔÚ×öʲô£¬·ñÔò±£ÁôÆäֵΪ 0¡£ - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </sect2> + <title>ÆäËü PHP ½Ó¿Ú</title> - <sect2 id="ini.sect.file_uploads"> - <title>ÎļþÉÏ´«</title> <para> - <table> - <title>ÎļþÉÏ´«ÅäÖÃÑ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>ÀàÐÍ</entry> - </row> - </thead> - <tbody> - <row> - <entry>file_uploads</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>upload_tmp_dir</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>upload_max_filesize</entry> - <entry>"2M"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - </tbody> - </tgroup> - </table> +Regardless of how you run PHP, you can change certain values at runtime +of your scripts through <function>ini_set</function>. See the documentation +on the <function>ini_set</function> page for more information. </para> - &ini.descriptions.title; <para> - <variablelist> - <varlistentry id="ini.file-uploads"> - <term> - <parameter>file_uploads</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ÊÇ·ñÔÊÐí HTTP - <link linkend="features.file-upload">ÎļþÉÏ´«</link>¡£²Î¼û - <link linkend="ini.upload-max-filesize">upload_max_filesize</link>£¬<link - linkend="ini.upload-tmp-dir">upload_tmp_dir</link> ºÍ - <link linkend="ini.post-max-size">post_max_size</link> Ö¸Áî¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.upload-tmp-dir"> - <term> - <parameter>upload_tmp_dir</parameter> - <type>string</type> - </term> - <listitem> - <para> - ÎļþÉÏ´«Ê±´æ·ÅÎļþµÄÁÙʱĿ¼¡£±ØÐëÊÇ - <literal>PHP</literal> ½ø³ÌËùÓÐÕßÓû§¿ÉдµÄĿ¼¡£Èç¹ûδָ¶¨Ôò - PHP ʹÓÃϵͳĬÈÏÖµ¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.upload-max-filesize"> - <term> - <parameter>upload_max_filesize</parameter> - <type>integer</type> - </term> - <listitem> - <para> - ËùÉÏ´«µÄÎļþµÄ×î´ó´óС¡£ - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </sect2> - - <sect2 id="ini.sql-general"> - <title>ÆÕͨ SQL</title> - <para> - <table> - <title>ÆÕͨ SQL ÅäÖÃÑ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>ÀàÐÍ</entry> - </row> - </thead> - <tbody> - <row> - <entry>sql.safe_mode</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - </tbody> - </tgroup> - </table> + If you are interested in a complete list of configuration settings +on your system with their current values, you can execute the +<function>phpinfo</function> function, and review the resulting +page. You can also access the values of individual configuration +directives at runtime using <function>ini_get</function> or +<function>get_cfg_var</function>. </para> - &ini.descriptions.title; - <para> - <variablelist> - <varlistentry id="ini.sql.safe-mode"> - <term> - <parameter>sql.safe_mode</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </sect2> - - <sect2 id="ini.sect.debugger"> - <title>µ÷ÊÔÆ÷ÅäÖÃÑ¡Ïî</title> - <variablelist> - - <varlistentry id="ini.debugger.host"> - <term> - <parameter>debugger.host</parameter> - <type>string</type> - </term> - <listitem> - <para> - µ÷ÊÔÆ÷ËùʹÓõÄÖ÷»úµÄ DNS Ãû»ò IP µØÖ·¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.debugger.port"> - <term> - <parameter>debugger.port</parameter> - <type>string</type> - </term> - <listitem> - <para> - µ÷ÊÔÆ÷ËùÓõĶ˿ںš£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.debugger.enabled"> - <term> - <parameter>debugger.enabled</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ÊÇ·ñÆôÓõ÷ÊÔÆ÷¡£ - </para> - </listitem> - </varlistentry> - - </variablelist> </sect2> </sect1>
http://cvs.php.net/diff.php/phpdoc-zh/chapters/config.xml?r1=1.25&r2=1.26&ty=u Index: phpdoc-zh/chapters/config.xml diff -u phpdoc-zh/chapters/config.xml:1.25 phpdoc-zh/chapters/config.xml:1.26 --- phpdoc-zh/chapters/config.xml:1.25 Wed Dec 10 20:06:52 2003 +++ phpdoc-zh/chapters/config.xml Tue Jun 8 21:02:19 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.25 $ --> +<!-- $Revision: 1.26 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.112 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.118 Maintainer: dallas Status: ready --> <chapter id="configuration"> <title>ÔËÐÐʱÅäÖÃ</title> @@ -9,8 +9,8 @@ <title>ÅäÖÃÎļþ</title> <simpara> - µ± PHP Æô¶¯Ê±»á¶ÁÈ¡ÅäÖÃÎļþ£¨ÔÚ PHP 3.0 ÖгÆÎª - <filename>php3.ini</filename>£¬ÔÚ PHP 4.0 Öмò»¯Îª + µ± PHP Æô¶¯Ê±»á¶ÁÈ¡ÅäÖÃÎļþ£¨ÔÚ PHP 3 ÖгÆÎª + <filename>php3.ini</filename>£¬ÔÚ PHP 4 Öмò»¯Îª &php.ini;£©¡£¶ÔÓÚ·þÎñÆ÷Ä£¿é°æ±¾µÄ PHP ½öÔÚ web ·þÎñÆ÷Æô¶¯Ê±¶Áȡһ´Î¡£¶ÔÓÚ <acronym>CGI</acronym> ºÍ <acronym>CLI</acronym> °æ±¾£¬Ã¿´Îµ÷Óö¼»á¶ÁÈ¡¡£ @@ -21,9 +21,9 @@ <acronym>CGI</acronym> ºÍ <acronym>CLI</acronym> °æ±¾¿ÉÒÔͨ¹ýÃüÁîÐпª¹Ø <literal>-c</literal> À´¸Ä±ä£¬¼û - <literal>PHP</literal> µÄ<link + PHP µÄ<link linkend="features.commandline">ÃüÁîÐз½Ê½</link>Ò»Õ¡£Ò²¿ÉÒÔÓû·¾³±äÁ¿ - <literal>PHPRC</literal> À´É趨ѰÕÒ + <varname>PHPRC</varname> À´É趨ѰÕÒ &php.ini; ÎļþµÄÆäËü·¾¶¡£ </para> <note> @@ -33,19 +33,15 @@ </para> </note> <para> - ²¢²»ÊÇÿһ¸ö PHP µÄÖ¸Áî¶¼ÁÐÈëÁËÒÔÏÂÊÖ²áÖС£ËùÓÐÖ¸ÁîµÄÁбíÓë˵Ã÷¼û - &php.ini; ÎļþÖеÄ×¢ÊÍ¡£¿ÉÒÔ´Ó CVS Öв鿴<ulink - url="&url.php.cvs.phpini;">×îÐ嵀 php.ini</ulink>¡£ +The &php.ini; directives handled by extensions are documented respectively +on the pages of the extensions themselfs. The <link linkend="ini">list of +the core directives</link> is available in the appendix. Probably not all +the PHP directives are documented in the manual though. For a completel list +of directives available in your PHP version, please read your well commented +&php.ini; file. Alternatively, you may find the +<ulink url="&url.php.cvs.phpini;">the latest &php.ini;</ulink> from CVS +helpful too. </para> - <note> - <para> - ´Ó PHP <ulink url="&url.php.release4.2.0;">4.2.0</ulink> - Æð½« - <link linkend="ini.register-globals">register_globals</link> - µÄĬÈÏÖµ´Ó - <emphasis>on</emphasis> ¸Ä³ÉÁË <emphasis>off</emphasis>¡£ - </para> - </note> <para> <example> <title>&php.ini; Àý×Ó</title> @@ -57,7 +53,7 @@ ; true, on, yes ; or false, off, no, none register_globals = off -magic_quotes_gpc = yes +track_errors = yes ; you can enclose strings in double-quotes include_path = ".:/usr/local/lib/php" @@ -75,16 +71,17 @@ <title>ÔõÑù¸Ä±äÅäÖÃÑ¡Ïî</title> <sect2 id="configuration.changes.apache"> - <title>ÒÔ Apache Ä£¿é·½Ê½ÔËÐÐ <literal>PHP</literal></title> + <title>ÒÔ Apache Ä£¿é·½Ê½ÔËÐÐ PHP</title> <simpara> µ±ÒÔ Apache µÄÄ£¿é·½Ê½ÔËÐÐ PHP ʱ£¬Ò²¿ÉÒÔͨ¹ý Apache µÄÅäÖÃÎļþ£¨ÀýÈç &httpd.conf;£©ºÍ &htaccess; - ÎļþÖеÄÖ¸ÁîÀ´ÐÞ¸Ä PHP µÄÅäÖÃÑ¡ÏÐèÒª¡°AllowOverride Options¡±»ò¡°AllowOverride All¡±È¨ÏÞ£©¡£ + ÎļþÖеÄÖ¸ÁîÀ´ÐÞ¸Ä PHP µÄÅäÖÃÑ¡Ïî¡£ÕâÑù×öÐèÒª¡°AllowOverride + Options¡±»ò¡°AllowOverride All¡±È¨ÏÞ¡£ </simpara> <para> - ÔÚ PHP 4.0 ÖУ¬Óм¸¸ö Apache Ö¸Áî¿ÉÒÔÔÊÐíÔÚ Apache + ÔÚ PHP 4 ºÍ PHP 5 ÖУ¬Óм¸¸ö Apache Ö¸Áî¿ÉÒÔÔÊÐíÔÚ Apache µÄÅäÖÃÎļþÖÐÐÞ¸Ä PHP µÄÅäÖá£ÒªµÃµ½ÄÄЩָÁî·Ö±ðÊôÓÚ <constant>PHP_INI_ALL</constant>£¬<constant>PHP_INI_PERDIR</constant> »ò <constant>PHP_INI_SYSTEM</constant> @@ -93,7 +90,7 @@ <note> <simpara> - ÔÚ PHP 3.0 ÖУ¬Ò²ÓÐºÍ + ÔÚ PHP 3 ÖУ¬Ò²ÓÐºÍ <filename>php3.ini</filename> ÖÐÑ¡ÏîÏà¶ÔÓ¦µÄ Apache Ö¸Áֻ²»¹ý¼ÓÉÏǰ׺¡°php3_¡±¡£ </simpara> @@ -115,8 +112,8 @@ </para> <note> <simpara> - ²»ÒªÓà <literal>php_value</literal> À´É趨²¼¶ûÖµ¡£Ó¦¸ÃÓà - <literal>php_flag</literal>£¨¼ûÏÂÃæ£©À´Ìæ´ú¡£ + ²»ÒªÓà <systemitem role="directive">php_value</systemitem> À´É趨²¼¶ûÖµ¡£Ó¦¸ÃÓà + <systemitem role="directive">php_flag</systemitem>£¨¼ûÏÂÃæ£©À´Ìæ´ú¡£ </simpara> </note> </listitem> @@ -143,7 +140,7 @@ </term> <listitem> <para> - É趨ָ¶¨Ö¸ÁîµÄÖµ¡£²»ÄÜÔÚ &htaccess; ÎļþÖÐʹÓá£ÈκÎÔÚ + É趨ָ¶¨Ö¸ÁîµÄÖµ¡£<emphasis>²»ÄÜÓÃÓÚ</emphasis> &htaccess; ÎļþÖС£ÈκÎÔÚ <systemitem role="directive">php_admin_value</systemitem> ÖÐÉ趨µÄÖµ²»Äܱ» &htaccess; »òÕß virtualhost ÖеÄÖ¸Á¸Ç¡£ÒªÇå³ýÉÏÒ»¸öÉ趨µÄÖµ£¬½«ÖµÉèΪ <literal>none</literal>¡£ @@ -158,7 +155,7 @@ </term> <listitem> <para> - ÓÃÓÚÉ趨²¼¶ûÖµÀàÐ͵ÄÅäÖÃÖ¸Áî¡£²»ÄÜÔÚ &htaccess; ÎļþÖÐʹÓá£ÈκÎÔÚ + ÓÃÓÚÉ趨²¼¶ûÖµÀàÐ͵ÄÅäÖÃÖ¸Áî¡£<emphasis>²»ÄÜÓÃÓÚ</emphasis> &htaccess; ÎļþÖС£ÈκÎÔÚ <systemitem role="directive">php_admin_flag</systemitem> ÖÐÉ趨µÄÖµ²»Äܱ» &htaccess; »òÕß virtualhost ÖеÄÖ¸Á¸Ç¡£ </para> @@ -171,6 +168,10 @@ <title>Apache ÅäÖÃÀý×Ó</title> <programlisting role="ini"> <![CDATA[ +<IfModule mod_php5.c> + php_value include_path ".:/usr/local/lib/php" + php_admin_flag safe_mode on +</IfModule> <IfModule mod_php4.c> php_value include_path ".:/usr/local/lib/php" php_admin_flag safe_mode on @@ -199,7 +200,7 @@ </sect2> <sect2 id="configuration.changes.windows"> - <title>ͨ¹ýÐÞ¸Ä Windows ×¢²á±íÀ´¸Ä±ä <literal>PHP</literal> ÅäÖÃ</title> + <title>ͨ¹ýÐÞ¸Ä Windows ×¢²á±íÀ´¸Ä±ä PHP ÅäÖÃ</title> <simpara> ÔÚ Windows ÏÂÔËÐÐ PHP ʱ£¬¿ÉÒÔͨ¹ý Windows ×¢²á±íÀ´ÐÞ¸Äÿ¸öĿ¼µÄÅäÖÃÑ¡Ïî¡£ÅäÖõÄÖµ´æ·ÅÓÚ×¢²á±íµÄ @@ -208,1112 +209,27 @@ <literal>c:\inetpub\wwwroot</literal> µÄÅäÖÃÖµ´æ·ÅÓÚ <literal>HKLM\SOFTWARE\PHP\Per Directory Values\c\inetpub\wwwroot</literal>¡£¶ÔÓÚĿ¼µÄÉèÖý«»áÔÚÈκÎÔÚ´ËĿ¼¼°Æä×ÓĿ¼ÏÂÔËÐеĽű¾¼¤»î¡£¶ÔÓ¦¼üÃûÓ¦¸ÃºÍ - <link linkend="configuration">PHP ÅäÖÃÑ¡Ïî</link>Ïàͬ²¢ÇÒ¾ßÓÐ×Ö·û´®Öµ¡£ÖµÖÐµÄ + PHP ÅäÖÃÑ¡ÏîÏàͬ²¢ÇÒ¾ßÓÐ×Ö·û´®Öµ¡£ÖµÖÐµÄ PHP ³£Á¿²»»á±»½âÎö¡£ </simpara> </sect2> <sect2 id="configuration.changes.other"> - <title>ÆäËü <literal>PHP</literal> ½Ó¿Ú</title> - <para> - ²»ÂÛ <literal>PHP</literal> - µÄ½Ó¿ÚÊÇʲô¶¼¿ÉÒÔÔڽű¾Ö´Ðйý³ÌÖÐͨ¹ý - <function>ini_set</function> - À´ÐÞ¸ÄһЩֵ¡£Ï±íÌṩÁËÖ¸Áî¿ÉÒÔÔÚÄÄÒ»¼¶±»É趨/Ð޸ĵĸÅÀÀ¡£ - </para> - <para> - <table> - <title>PHP_INI_* ³£Á¿µÄ¶¨Òå</title> - <tgroup cols="3"> - <thead> - <row> - <entry>³£Á¿</entry> - <entry>Öµ</entry> - <entry>º¬Òå</entry> - </row> - </thead> - <tbody> - <row> - <entry>PHP_INI_USER</entry> - <entry>1</entry> - <entry>¸ÃÏîÄ¿¿ÉÒÔÔÚÓû§½Å±¾ÖÐÉ趨</entry> - </row> - <row> - <entry>PHP_INI_PERDIR</entry> - <entry>2</entry> - <entry> - ¸ÃÏîÄ¿¿ÉÒÔÔÚ &php.ini;£¬&htaccess; »òÕß - &httpd.conf; ÖÐÉ趨 - </entry> - </row> - <row> - <entry>PHP_INI_SYSTEM</entry> - <entry>4</entry> - <entry> - ¸ÃÏîÄ¿¿ÉÒÔÔÚ &php.ini; »ò &httpd.conf; ÖÐÉ趨 - </entry> - </row> - <row> - <entry>PHP_INI_ALL</entry> - <entry>7</entry> - <entry>¸ÃÏîÄ¿¿ÉÒÔÔÚÈκεط½É趨</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - <para> - ¿ÉÒÔÔÚ - <function>phpinfo</function> - µÄÊä³öÖв鿴ÅäÖÃÑ¡ÏîµÄÖµ¡£Ò²¿ÉÒÔÓà - <function>ini_get</function> »ò <function>get_cfg_var</function> - À´µ¥¸ö·ÃÎÊÅäÖÃÖ¸ÁîµÄÖµ¡£ - </para> - </sect2> - </sect1> - - <sect1 id="configuration.directives"> - <title>¸÷ÖÖÅäÖÃÖ¸Áî</title> - <para> - ÕâÀï²¢²»ÊÇÈ«²¿ PHP Ö¸ÁîµÄÁÐ±í¡£¸÷ÖÖÖ¸Áî±»ÁÐÔÚÆäÏàÓ¦µÄλÖã¬ÀýÈçÓÐ¹Ø - session Ö¸ÁîµÄÐÅÏ¢¾ÍÔÚ <link linkend="ref.session">sessions</link> Ò»ÕÂÖС£ - </para> - - <sect2 id="ini.sect.httpd-options"> - <title>Httpd Ñ¡Ïî</title> - <para> - <table> - <title>Httpd Ñ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>Àà±ð</entry> - </row> - </thead> - <tbody> - <row> - <entry>async_send</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - <para> - </para> - </sect2> - - <sect2 id="ini.sect.language-options"> - <title>ÓïÑÔÑ¡Ïî</title> - <para> - <table> - <title>ÓïÑÔºÍÔÓÀàÅäÖÃÑ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>Àà±ð</entry> - </row> - </thead> - <tbody> - <row> - <entry>short_open_tag</entry> - <entry>On</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>asp_tags</entry> - <entry>Off</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>precision</entry> - <entry>"14"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>y2k_compliance</entry> - <entry>Off</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>allow_call_time_pass_reference</entry> - <entry>On</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>expose_php</entry> - <entry>On</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - &ini.descriptions.title; - <para> - <variablelist> - <varlistentry id="ini.short-open-tag"> - <term> - <parameter>short_open_tag</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ¾ö¶¨ÊÇ·ñÔÊÐíʹÓà PHP ´úÂ뿪ʼ±êÖ¾µÄËõдÐÎʽ£¨<userinput><? - ?></userinput>£©¡£Èç¹ûÒªºÍ XML ½áºÏʹÓà - PHP£¬¿ÉÒÔ½ûÓôËÑ¡ÏîÒÔ±ãÓÚǶÈëʹÓà - <userinput><?xml ?></userinput>¡£·ñÔò»¹¿ÉÒÔͨ¹ý - PHP À´Êä³ö£¬ÀýÈ磺<userinput><?php echo '<?xml - version="1.0"'; ?></userinput>¡£Èç¹û½ûÓÃÁË£¬±ØÐëʹÓà - PHP ´úÂ뿪ʼ±êÖ¾µÄÍêÕûÐÎʽ£¨<userinput><?php - ?></userinput>£©¡£ - </para> - <note> - <para> - ±¾Ö¸ÁîÒ²»áÓ°Ïìµ½ËõдÐÎʽ - <userinput><?=</userinput>£¬ËüºÍ - <userinput><? echo</userinput> µÈ¼Û¡£Ê¹ÓôËËõдÐèÒª - <systemitem role="directive">short_open_tag</systemitem> - µÄֵΪ On¡£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.asp-tags"> - <term> - <parameter>asp_tags</parameter> - <type>boolean</type> - </term> - <listitem> - <simpara> - ³ýÁËͨ³£µÄ - <?php ?> - ±êÖ¾Ö®Í⻹ÔÊÐíʹÓà - ASP ·ç¸ñµÄ±êÖ¾ <% %>¡£ÕâÒ²°üÀ¨ÁËÊä³ö±äÁ¿ÖµµÄËõд - <%= $value %>¡£¸ü¶àÐÅÏ¢¼û<link - linkend="language.basic-syntax.phpmode">´Ó HTML ÖзÖÀë</link>Ò»½Ú¡£ - </simpara> - <note> - <para> - ASP ·ç¸ñ±êÖ¾µÄÖ§³ÖÊÇ 3.0.4 °æÐ¼ӵġ£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.precision"> - <term> - <parameter>precision</parameter> - <type>integer</type> - </term> - <listitem> - <simpara> - ¸¡µãÊýÖÐÏÔʾÓÐЧÊý×ÖµÄλÊý¡£ - </simpara> - </listitem> - </varlistentry> - - <varlistentry id="ini.y2k-compliance"> - <term> - <parameter>y2k_compliance</parameter> - <type>boolean</type> - </term> - <listitem> - <simpara> - Ç¿ÖÆ 2000 Äê¼æÈÝ£¨ÔÚ²»¼æÈݵÄä¯ÀÀÆ÷Öлá³öÎÊÌ⣩¡£ - </simpara> - </listitem> - </varlistentry> - - - <varlistentry id="ini.allow-call-time-pass-reference"> - <term> - <parameter>allow_call_time_pass_reference</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ÊÇ·ñÆôÓÃÔÚº¯Êýµ÷ÓÃÊ±Ç¿ÖÆ²ÎÊý±»°´ÕÕÒýÓô«µÝ¡£´Ë·½·¨ÒѲ»±»Ô޳ɲ¢ÔÚ - PHP/Zend δÀ´µÄ°æ±¾ÖкܿÉÄܲ»ÔÙÖ§³Ö¡£¹ÄÀøÊ¹Óõķ½·¨ÊÇÔÚº¯Êý¶¨ÒåÖÐÖ¸¶¨ÄÄЩ²ÎÊýÓ¦¸ÃÓÃÒýÓô«µÝ¡£¹ÄÀø´ó¼Ò³¢ÊԹرմËÑ¡Ïȷ±£½Å±¾Äܹ»Õý³£ÔËÐУ¬ÒÔÈ·±£¸Ã½Å±¾Ò²ÄÜÔÚδÀ´µÄ°æ±¾ÖÐÔËÐУ¨Ã¿´ÎʹÓôËÌØÐÔ¶¼»áÊÕµ½Ò»Ìõ¾¯¸æ£¬²ÎÊý»á±»°´Öµ´«µÝ¶ø²»Êǰ´ÕÕÒýÓô«µÝ£©¡£ - </para> - <para> - ²Î¼û<link linkend="language.references">ÒýÓõĽâÊÍ</link>¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.expose-php"> - <term> - <parameter>expose_php</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ¾ö¶¨ÊÇ·ñ±©Â¶ PHP ±»°²×°ÔÚ·þÎñÆ÷ÉÏ£¨ÀýÈçÔÚ Web - ·þÎñÆ÷µÄÐÅϢͷÖмÓÉÏÆäÇ©Ãû£©¡£Ã»ÓÐÈκΰ²È«ÉϵÄÍþв£¬Ö»ÊÇÈÿͻ§¶ËÄܹ»ÖªµÀÊÇ·ñÔÚ·þÎñÆ÷Öа²×°ÁË - PHP¡£ - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </sect2> - - <sect2 id="ini.sect.resource-limits"> - <title>×ÊÔ´ÏÞÖÆ</title> - <para> - <table> - <title>×ÊÔ´ÏÞÖÆ</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>ÀàÐÍ</entry> - </row> - </thead> - <tbody> - <row> - <entry>memory_limit</entry> - <entry>"8M"</entry> - <entry>PHP_INI_ALL</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - &ini.descriptions.title; - <para> - <variablelist> - <varlistentry id="ini.memory-limit"> - <term> - <parameter>memory_limit</parameter> - <type>integer</type> - </term> - <listitem> - <para> - ±¾Ö¸ÁîÉ趨ÁËÒ»¸ö½Å±¾ËùÄܹ»ÉêÇëµ½µÄ×î´óÄÚ´æ×Ö½ÚÊý¡£ÕâÓÐÖúÓÚ·ÀֹдµÃ²»ºÃµÄ½Å±¾ÏûºÄ¹â·þÎñÆ÷ÉϵĿÉÓÃÄڴ档ҪʹÓôËÖ¸Áî±ØÐëÔÚ±àÒëµÄʱºò¼¤»î¡£Òò´Ë - configure - Ò»ÐÐÖÐÓ¦¸Ã°üÀ¨£º<literal>--enable-memory-limit</literal>¡£Èç¹û²»ÐèÒªÈκÎÄÚ´æÉϵÄÏÞÖÆ£¬±ØÐ뽫ÆäÉèΪ - -1¡£ - </para> - <para> - ×Ô 4.3.2 Æð£¬µ±¼¤»îÁË memory_limit£¬PHP º¯Êý - <function>memory_get_usage</function> ³ÉΪ¿ÉÓᣠ- </para> - </listitem> - </varlistentry> - </variablelist> - </para> - <para> - ²Î¼û <link linkend="ini.max-execution-time">max_execution_time</link>¡£ - </para> - </sect2> - - <sect2 id="ini.sect.data-handling"> - <title>Êý¾Ý´¦Àí</title> - <para> - <table> - <title>Êý¾Ý´¦ÀíÅäÖÃÑ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>ÀàÐÍ</entry> - </row> - </thead> - <tbody> - <row> - <entry>track-vars</entry> - <entry>"On"</entry> - <entry>PHP_INI_??</entry> - </row> - <row> - <entry>arg_separator.output</entry> - <entry>"&"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>arg_separator.input</entry> - <entry>"&"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>variables_order</entry> - <entry>"EGPCS"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>register_globals</entry> - <entry>"Off"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>register_argc_argv</entry> - <entry>"On"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>register_long_arrays</entry> - <entry>"On"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>post_max_size</entry> - <entry>"8M"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>gpc_order</entry> - <entry>"GPC"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>auto_prepend_file</entry> - <entry>""</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>auto_append_file</entry> - <entry>""</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>default_mimetype</entry> - <entry>"text/html"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>default_charset</entry> - <entry>"iso-8859-1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>always_populate_raw_post_data</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>allow_webdav_methods</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - &ini.descriptions.title; - <para> - <variablelist> - <varlistentry id="ini.track-vars"> - <term> - <parameter>track_vars</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - Èç¹û¼¤»î£¬Ôò»·¾³±äÁ¿£¬GET£¬POST£¬Cookie ºÍ Server - ±äÁ¿¶¼Äܹ»·Ö±ðÔÚÈ«¾Ö¹ØÁªÊý×éÖÐÕÒµ½£º<varname>$_ENV</varname>£¬<varname>$_GET</varname>£¬<varname>$_POST</varname>£¬<varname>$_COOKIE</varname> ºÍ - <varname>$_SERVER</varname>¡£ - </para> - <para> - ×¢Òâ×Ô PHP 4.0.3 Æð£¬<systemitem - role="directive">track_vars</systemitem> ×ÜÊÇ´ò¿ªµÄ¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.arg-separator.output"> - <term> - <parameter>arg_separator.output</parameter> - <type>string</type> - </term> - <listitem> - <para> - PHP Ëù²úÉúµÄ URL ÖÐÀ´·Ö¸ô²ÎÊýµÄ·Ö¸ô·û¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.arg-separator.input"> - <term> - <parameter>arg_separator.input</parameter> - <type>string</type> - </term> - <listitem> - <para> - PHP ÓÃÀ´½« URL ½âÎöΪ±äÁ¿µÄ·Ö¸ô·ûÁÐ±í¡£ - </para> - <note> - <para> - ±¾Ö¸ÁîÖеÄÿ¸ö×Ö·û¶¼»á±»µ±³É·Ö¸ô·û£¡ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.variables-order"> - <term> - <parameter>variables_order</parameter> - <type>string</type> - </term> - <listitem> - <para> - É趨 EGPCS£¨Environment£¬GET£¬POST£¬Cookie£¬Server£©±äÁ¿½âÎöµÄ˳Ðò¡£Ä¬ÈÏÉ趨Ϊ¡°EGPCS¡±¡£¾ÙÀý˵£¬½«ÆäÉèΪ¡°GP¡±£¬»áµ¼Ö - PHP ÍêÈ«ºöÂÔ»·¾³±äÁ¿£¬cookies ºÍ server ±äÁ¿£¬²¢Óà GET - ·½·¨µÄ±äÁ¿¸²¸Ç POST ·½·¨µÄͬÃû±äÁ¿¡£ - </para> - <para> - ²Î¼û <link linkend="ini.register-globals">register_globals</link>¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.register-globals"> - <term> - <parameter>register_globals</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ¾ö¶¨ÊÇ·ñ½« - EGPCS£¨Environment£¬GET£¬POST£¬Cookie£¬Server£©±äÁ¿×¢²áΪȫ¾Ö±äÁ¿¡£ÀýÈ磬Èç¹û - register_globals = on£¬ÄÇô URL - <literal>http://www.example.com/test.php?id=3</literal> - ½«²úÉú - <varname>$id</varname>¡£»òÕß´Ó - <varname>$_SERVER['DOCUMENT_ROOT']</varname> - µÃÀ´ - <varname>$DOCUMENT_ROOT</varname>¡£Èç¹û²»ÏëÓû§Êý¾Ý°ÑÈ«¾ÖÓòŪÂҵϰ¿ÉÒÔ½«´ËÑ¡Ïî¹Ø±Õ¡£×Ô - PHP <ulink url="&url.php.release4.2.0;">4.2.0</ulink> - ¿ªÊ¼£¬±¾Ö¸ÁîĬÈÏΪ - <emphasis>off</emphasis>¡£ÍƼöʹÓà PHP - µÄ<link linkend="reserved.variables">Ô¤¶¨Òå±äÁ¿</link>À´Ìæ´ú£¬ÀýÈç<link - linkend="language.variables.superglobals">³¬È«¾Ö±äÁ¿</link>£º<varname>$_ENV</varname>£¬<varname>$_GET</varname>£¬<varname>$_POST</varname>£¬<varname>$_COOKIE</varname> ºÍ - <varname>$_SERVER</varname>¡£Ïà¹ØÐÅÏ¢ÇëÔĶÁ°²È«Ò»ÕÂÖеÄ<link - linkend="security.registerglobals">ʹÓà register_globals</link>¡£ - </para> - <para> - Çë×¢Òâ - <systemitem role="directive">register_globals</systemitem> - ²»ÄÜÔÚÔËÐÐʱÉ趨£¨<function>ini_set</function>£©£¬¾¡¹ÜÈçÒÔÉÏ˵Ã÷ÔÚÖ÷»úÔÊÐíʱ¿ÉÒÔÓà - &htaccess;¡£Ò»¸ö - &htaccess; ÏîÄ¿µÄÀý×Ó£º<userinput>php_flag register_globals on</userinput>¡£ - </para> - <note> - <para> - <systemitem role="directive">register_globals</systemitem> - ÊÜ - <link linkend="ini.variables-order">variables_order</link> - Ö¸ÁîµÄÓ°Ïì¡£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.register-argc-argv"> - <term> - <parameter>register_argc_argv</parameter> - <type>boolean</type> - </term> - <listitem> - <simpara> - ¾ö¶¨ PHP ÊÇ·ñ¶¨Òå argv & argc ±äÁ¿£¨¿ÉÄܰüº¬ÓÐ GET ÐÅÏ¢£©¡£ - </simpara> - <simpara> - ²Î¼û<link linkend="features.commandline">ÃüÁîÐз½Ê½</link>¡£´ËÍ⣬±¾Ñ¡Ïî×Ô - PHP 4.0.0 Æð¿ÉÓã¬ÔÚ´Ë֮ǰ×ÜÊÇ¡°On¡±¡£ - </simpara> - </listitem> - </varlistentry> - - <varlistentry id="ini.register-long-arrays"> - <term> - <parameter>register_long_arrays</parameter> - <type>boolean</type> - </term> - <listitem> - <simpara> - É趨 PHP ÊÇ·ñ×¢²áÒѹýʱµÄ <varname>$HTTP_*_VARS</varname> Ö®ÀàµÄ<link - linkend="language.variables.predefined">Ô¤¶¨Òå±äÁ¿</link>¡£Èç¹ûΪ - On£¨Ä¬ÈÏÖµ£©£¬ÔòÀàËÆ <varname>$HTTP_GET_VARS</varname> - µÄ PHP ±äÁ¿»á±»×¢²á¡£Èç¹û²»Ê¹Óã¬ÎªÐÔÄÜ¿¼Âǽ¨Ò鹨±Õ´ËÑ¡Ï¶øÊ¹Óó¬È«¾ÖÊý×éÀýÈç - <varname>$_GET</varname> Ìæ´úÖ®¡£ - </simpara> - <simpara> - ±¾Ö¸Áî×Ô PHP 5.0.0 Æð¿ÉÓᣠ- </simpara> - </listitem> - </varlistentry> - - <varlistentry id="ini.post-max-size"> - <term> - <parameter>post_max_size</parameter> - <type>integer</type> - </term> - <listitem> - <simpara> - É趨 POST Êý¾ÝËùÔÊÐíµÄ×î´ó´óС¡£´ËÉ趨ҲӰÏìµ½ÎļþÉÏ´«¡£ÒªÉÏ´«´óÎļþ£¬¸ÃÖµ±ØÐë´óÓÚ - <link linkend="ini.upload-max-filesize">upload_max_filesize</link>¡£ - </simpara> - <simpara> - Èç¹ûÅäÖýű¾Ö줻îÁËÄÚ´æÏÞÖÆ£¬<link - linkend="ini.memory-limit">memory_limit</link> - Ò²»áÓ°ÏìÎļþÉÏ´«¡£Í¨³£Ëµ£¬<link linkend="ini.memory-limit">memory_limit</link> - Ó¦¸Ã±È - <parameter>post_max_size</parameter> Òª´ó¡£ - </simpara> - </listitem> - </varlistentry> - - <varlistentry id="ini.gpc-order"> - <term> - <parameter>gpc_order</parameter> - <type>string</type> - </term> - <listitem> - <para> - É趨 GET/POST/COOKIE ±äÁ¿½âÎöµÄ˳Ðò£¬Ä¬ÈÏΪ¡°GPC¡±¡£¾ÙÀý˵£¬½«ÆäÉèΪ¡°GP¡±£¬»áµ¼Ö - PHP ÍêÈ«ºöÂÔ cookie ±äÁ¿£¬²¢Óà GET - ·½·¨µÄ±äÁ¿¸²¸Ç POST ·½·¨µÄͬÃû±äÁ¿¡£ - </para> - <note> - <para> - ±¾Ñ¡Ïî²»ÄÜÓÃÓÚ PHP 4¡£Óà - <link linkend="ini.variables-order">variables_order</link> Ìæ´úÖ®¡£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.auto-prepend-file"> - <term> - <parameter>auto_prepend_file</parameter> - <type>string</type> - </term> - <listitem> - <para> - Ö¸¶¨ÔÚÖ÷Îļþ֮ǰ×Ô¶¯½âÎöµÄÎļþÃû¡£¸ÃÎļþ¾ÍÏñµ÷ÓÃÁË - <function>include</function> º¯ÊýÒ»Ñù±»°üº¬½øÀ´£¬Òò´Ë»áʹÓà - <link linkend="ini.include-path">include_path</link>¡£ - </para> - <para> - ÌØÊâÖµ <systemitem class="constant">none</systemitem> - ½ûÖ¹ÁË×Ô¶¯Ç°×º¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.auto-append-file"> - <term> - <parameter>auto_append_file</parameter> - <type>string</type> - </term> - <listitem> - <para> - Ö¸¶¨ÔÚÖ÷ÎļþÖ®ºó×Ô¶¯½âÎöµÄÎļþÃû¡£¸ÃÎļþ¾ÍÏñµ÷ÓÃÁË - <function>include</function> º¯ÊýÒ»Ñù±»°üº¬½øÀ´£¬Òò´Ë»áʹÓà - <link linkend="ini.include-path">include_path</link>¡£ - </para> - <para> - ÌØÊâÖµ <systemitem class="constant">none</systemitem> - ½ûÖ¹ÁË×Ô¶¯ºó׺¡£ - <note> - <simpara> - Èç¹û½Å±¾Í¨¹ý - <function>exit</function> ÖÕÖ¹£¬Ôò×Ô¶¯ºó׺<emphasis>²»»á</emphasis>·¢Éú¡£ - </simpara> - </note> - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.default-mimetype"> - <term> - <parameter>default_mimetype</parameter> - <type>string</type> - </term> - <listitem> - <para> - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.default-charset"> - <term> - <parameter>default_charset</parameter> - <type>string</type> - </term> - <listitem> - <para> - ×Ô 4.0b4 Æð£¬PHP ×ÜÊÇĬÈÏÔÚ HTTP ÐÅϢͷ - Content-type: ÖÐÊä³ö×Ö·û±àÂë¡£Òª½ûÖ¹·¢ËÍ×Ö·û¼¯£¬½«±¾Ñ¡ÏîÉèΪ¿Õ¼´¿É¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.always-populate-raw-post-data"> - <term> - <parameter>always_populate_raw_post_data</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ×ÜÊÇÔö¼Ó $HTTP_RAW_POST_DATA ±äÁ¿¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.allow-webdav-methods"> - <term> - <parameter>allow_webdav_methods</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ÔÊÐíÔÚ PHP ½Å±¾Öд¦Àí - WebDAV µÄ HTTP ÇëÇó£¨ÀýÈç - PROPFIND£¬PROPPATCH£¬MOVE£¬COPY µÈ£©¡£Èç¹ûҪȡµÃÕâЩÇëÇóµÄ - POST Êý¾Ý£¬Ò²ÒªÉ趨 - <link linkend="ini.always-populate-raw-post-data">always_populate_raw_post_data</link>¡£ - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - <para> - ²Î¼û - <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link>£¬<link linkend="ini.magic-quotes-runtime">magic-quotes-runtime</link> ºÍ - <link linkend="ini.magic-quotes-sybase">magic_quotes_sybase</link>¡£ - </para> - </sect2> - - <sect2 id="ini.sect.path-directory"> - <title>·¾¶ºÍĿ¼</title> - <para> - <table> - <title>·¾¶ºÍĿ¼ÅäÖÃÑ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>ÀàÐÍ</entry> - </row> - </thead> - <tbody> - <row> - <entry>include_path</entry> - <entry>PHP_INCLUDE_PATH</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>doc_root</entry> - <entry>PHP_INCLUDE_PATH</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>user_dir</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>extension_dir</entry> - <entry>PHP_EXTENSION_DIR</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>cgi.fix_pathinfo</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>cgi.force_redirect</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>cgi.redirect_status_env</entry> - <entry>""</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>fastcgi.impersonate</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>cgi.rfc2616_headers</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - &ini.descriptions.title; - <para> - <variablelist> - <varlistentry id="ini.include-path"> - <term> - <parameter>include_path</parameter> - <type>string</type> - </term> - <listitem> - <para> - Ö¸¶¨Ò»×éĿ¼ÓÃÓÚ - <function>require</function>£¬<function>include</function> ºÍ - <function>fopen_with_path</function> - º¯ÊýÀ´Ñ°ÕÒÎļþ¡£¸ñʽºÍϵͳµÄ - <envar>PATH</envar> - »·¾³±äÁ¿ÀàËÆ£ºÒ»×éĿ¼µÄÁÐ±í£¬ÔÚ UNIX ÏÂÓÃðºÅ·Ö¸ô£¬ÔÚ - Windows ÏÂÓ÷ֺŷָô¡£ - </para> - <para> - <example> - <title>UNIX include_path</title> - <programlisting role="php.ini"> -<![CDATA[ -include_path=".:/php/includes" -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Windows include_path</title> - <programlisting role="php.ini"> -<![CDATA[ -include_path=".;c:\php\includes" -]]> - </programlisting> - </example> - </para> - <para> - ÔÚ°üº¬Â·¾¶ÖÐʹÓà <literal>.</literal> - ¿ÉÒÔÔÊÐíÏà¶Ô·¾¶£¬Ëü´ú±íµ±Ç°Ä¿Â¼¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.doc-root"> - <term> - <parameter>doc_root</parameter> - <type>string</type> - </term> - <listitem> - <para> - PHP ÔÚ·þÎñÆ÷ÉϵĸùĿ¼¡£½öÔÚ·Ç¿ÕʱʹÓá£Èç¹û - PHP ±»ÅäÖÃΪ&safemode;£¬Ôò´ËĿ¼֮ÍâµÄÎļþÒ»¸Å²»±»½âÎö¡£Èç¹û - PHP ±àÒëʱûÓÐÖ¸¶¨ FORCE_REDIRECT£¬²¢ÇÒÔÚÈκΠweb - ·þÎñÆ÷£¨³ýÁË IIS£©ÖÐÒÔ CGI - ·½Ê½ÔËÐÐ PHP£¬ÔòÓ¦¸ÃÉ趨 doc_root¡£Ìæ´ú·½°¸ÊÇʹÓÃÏÂÃæµÄ - <link linkend="ini.cgi.force-redirect">cgi.force_redirect</link> - ÅäÖÃÑ¡Ïî¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.user-dir"> - <term> - <parameter>user_dir</parameter> - <type>string</type> - </term> - <listitem> - <para> - ÔÚÓû§Ä¿Â¼Ö®ÏÂʹÓà <literal>PHP</literal> - ÎļþµÄ»ù±¾Ä¿Â¼Ãû£¬ÀýÈç - <literal>public_html</literal>¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.extension-dir"> - <term> - <parameter>extension_dir</parameter> - <type>string</type> - </term> - <listitem> - <para> - PHP ÓÃÀ´Ñ°ÕÒ¶¯Ì¬Á¬½ÓÀ©Õ¹¿âµÄĿ¼¡£²Î¼û - <link linkend="ini.enable-dl">enable_dl</link> ºÍ - <function>dl</function>¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.extension"> - <term> - <parameter>extension</parameter> - <type>string</type> - </term> - <listitem> - <para> - µ± PHP Æô¶¯Ê±Ëù¼ÓÔØµÄ¶¯Ì¬Á¬½ÓÀ©Õ¹¿â¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.cgi.fix_pathinfo"> - <term> - <parameter>cgi.fix_pathinfo</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ¶Ô CGI ÌṩÁË<emphasis>ÕæÕýµÄ</emphasis> PATH_INFO/PATH_TRANSLATED - Ö§³Ö¡£ÒÔǰ PHP µÄÐÐΪÊǽ« PATH_TRANSLATED ÉèΪ - SCRIPT_FILENAME£¬¶ø²»¹Ü PATH_INFO ÊÇʲô¡£ÓÐ¹Ø PATH_INFO - µÄ¸ü¶àÐÅÏ¢¼û cgi ¹æ¸ñ¡£½«´ËÖµÉèΪ 1 ½«Ê¹ PHP CGI - ÐÞÕýÆä·¾¶ÒÔ×ñÊØ¹æ¸ñ¡£ÉèΪ 0 ½«Ê¹ PHP - µÄÐÐΪºÍ´ÓǰһÑù¡£Ä¬ÈÏΪÁã¡£Óû§Ó¦¸ÃÐÞÕýÆä½Å±¾Ê¹Óà SCRIPT_FILENAME - ¶ø²»ÊÇ PATH_TRANSLATED¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.cgi.force-redirect"> - <term> - <parameter>cgi.force_redirect</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ÔÚ´ó¶àÊý web ·þÎñÆ÷ÖÐÒÔ CGI ·½Ê½ÔËÐÐ PHP - ʱºÜÓбØÒªÓà cgi.force_redirect Ìṩ°²È«¡£PHP - ĬÈÏÆäΪ On¡£¿ÉÒÔ½«Æä¹Ø±Õ£¬µ«<emphasis>·çÏÕ×Ôµ£</emphasis>¡£ - </para> - <note> - <para> - Windows Óû§£º¿ÉÒÔ°²È«µØÔÚ IIS ֮Ͻ«Æä¹Ø±Õ£¬ÊÂʵÉϱØÐëÕâô×ö¡£ÒªÔÚ - OmniHTTPD »ò Xitami Ö®ÏÂʹÓÃÒ²±ØÐ뽫Æä¹Ø±Õ¡£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.cgi.redirect-status-env"> - <term> - <parameter>cgi.redirect_status_env</parameter> - <type>string</type> - </term> - <listitem> - <para> - Èç¹û´ò¿ªÁË cgi.force_redirect£¬²¢ÇÒ²»ÊÇÔÚ - Apache »ò Netscape£¨iPlanet£©web - ·þÎñÆ÷Ö®ÏÂÔËÐУ¬¿ÉÄÜÐèÒªÉ趨һ¸ö»·¾³±äÁ¿Ãû£¬PHP - ½«È¥Ñ°ÕÒËüÀ´ÖªµÀ¿ÉÒÔ¼ÌÐøÖ´ÐÐÏÂÈ¥¡£ - </para> - <note> - <para> - É趨´Ë±äÁ¿¿ÉÄܻᵼÖ°²È«ÎÊÌ⣬Ê×ÏÈÒªÖªµÀ×Ô¼ºÔÚ×öʲô¡£ - </para> - </note> - </listitem> - </varlistentry> - - <varlistentry id="ini.fastcgi.impersonate"> - <term> - <parameter>fastcgi.impersonate</parameter> - <type>string</type> - </term> - <listitem> - <para> - IIS£¨ÔÚ»ùÓÚ WINNT µÄ²Ù×÷ϵͳÉÏ£©ÖÐµÄ FastCGI - Ö§³ÖÄ£·Â¿Í»§¶Ë°²È«ÁîÅÆµÄÄÜÁ¦¡£ÕâʹµÃ IIS - Äܹ»¶¨ÒåÔËÐÐʱËù»ùÓÚµÄÇëÇóµÄ°²È«ÉÏÏÂÎÄ¡£Apache - ÖÐµÄ mod_fastcgi ²»Ö§³Ö´ËÌØÐÔ£¨03/17/2002£©¡£Èç¹ûÔÚ - IIS ÖÐÔËÐÐÔòÉèΪ 1¡£Ä¬ÈÏΪ 0¡£ - </para> - </listitem> - </varlistentry> - <varlistentry id="ini.cgi.rfc2616-headers"> - <term> - <parameter>cgi.rfc2616_headers</parameter> - <type>int</type> - </term> - <listitem> - <para> - Ö¸¶¨ PHP ÔÚ·¢ËÍ HTTP ÏìÓ¦´úÂëʱʹÓúÎÖÖ±¨Í·¡£Èç¹ûÉ趨Ϊ 0£¬PHP - ·¢ËÍÒ»¸ö Status: ±¨Í·£¬Apache ºÍÆäËü web server ¶¼Ö§³Ö¡£Èç¹û´ËÑ¡ÏîÉ趨Ϊ 1£¬PHP - ½«·¢ËÍ <ulink url="&url.rfc;2616">RFC 2616</ulink> - ¼æÈݵı¨Í·¡£³ý·ÇÄãÖªµÀ×Ô¼ºÔÚ×öʲô£¬·ñÔò±£ÁôÆäֵΪ 0¡£ - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </sect2> + <title>ÆäËü PHP ½Ó¿Ú</title> - <sect2 id="ini.sect.file_uploads"> - <title>ÎļþÉÏ´«</title> <para> - <table> - <title>ÎļþÉÏ´«ÅäÖÃÑ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>ÀàÐÍ</entry> - </row> - </thead> - <tbody> - <row> - <entry>file_uploads</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>upload_tmp_dir</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>upload_max_filesize</entry> - <entry>"2M"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - </tbody> - </tgroup> - </table> +Regardless of how you run PHP, you can change certain values at runtime +of your scripts through <function>ini_set</function>. See the documentation +on the <function>ini_set</function> page for more information. </para> - &ini.descriptions.title; <para> - <variablelist> - <varlistentry id="ini.file-uploads"> - <term> - <parameter>file_uploads</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ÊÇ·ñÔÊÐí HTTP - <link linkend="features.file-upload">ÎļþÉÏ´«</link>¡£²Î¼û - <link linkend="ini.upload-max-filesize">upload_max_filesize</link>£¬<link - linkend="ini.upload-tmp-dir">upload_tmp_dir</link> ºÍ - <link linkend="ini.post-max-size">post_max_size</link> Ö¸Áî¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.upload-tmp-dir"> - <term> - <parameter>upload_tmp_dir</parameter> - <type>string</type> - </term> - <listitem> - <para> - ÎļþÉÏ´«Ê±´æ·ÅÎļþµÄÁÙʱĿ¼¡£±ØÐëÊÇ - <literal>PHP</literal> ½ø³ÌËùÓÐÕßÓû§¿ÉдµÄĿ¼¡£Èç¹ûδָ¶¨Ôò - PHP ʹÓÃϵͳĬÈÏÖµ¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.upload-max-filesize"> - <term> - <parameter>upload_max_filesize</parameter> - <type>integer</type> - </term> - <listitem> - <para> - ËùÉÏ´«µÄÎļþµÄ×î´ó´óС¡£ - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </sect2> - - <sect2 id="ini.sql-general"> - <title>ÆÕͨ SQL</title> - <para> - <table> - <title>ÆÕͨ SQL ÅäÖÃÑ¡Ïî</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Ãû³Æ</entry> - <entry>ĬÈÏÖµ</entry> - <entry>ÀàÐÍ</entry> - </row> - </thead> - <tbody> - <row> - <entry>sql.safe_mode</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - </tbody> - </tgroup> - </table> + If you are interested in a complete list of configuration settings +on your system with their current values, you can execute the +<function>phpinfo</function> function, and review the resulting +page. You can also access the values of individual configuration +directives at runtime using <function>ini_get</function> or +<function>get_cfg_var</function>. </para> - &ini.descriptions.title; - <para> - <variablelist> - <varlistentry id="ini.sql.safe-mode"> - <term> - <parameter>sql.safe_mode</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </sect2> - - <sect2 id="ini.sect.debugger"> - <title>µ÷ÊÔÆ÷ÅäÖÃÑ¡Ïî</title> - <variablelist> - - <varlistentry id="ini.debugger.host"> - <term> - <parameter>debugger.host</parameter> - <type>string</type> - </term> - <listitem> - <para> - µ÷ÊÔÆ÷ËùʹÓõÄÖ÷»úµÄ DNS Ãû»ò IP µØÖ·¡£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.debugger.port"> - <term> - <parameter>debugger.port</parameter> - <type>string</type> - </term> - <listitem> - <para> - µ÷ÊÔÆ÷ËùÓõĶ˿ںš£ - </para> - </listitem> - </varlistentry> - - <varlistentry id="ini.debugger.enabled"> - <term> - <parameter>debugger.enabled</parameter> - <type>boolean</type> - </term> - <listitem> - <para> - ÊÇ·ñÆôÓõ÷ÊÔÆ÷¡£ - </para> - </listitem> - </varlistentry> - - </variablelist> </sect2> </sect1>