cvs: phpdoc-zh /chapters config.xml

From: Date: Thu, 12 Sep 2002 03:10:21 +0000
Subject: cvs: phpdoc-zh /chapters config.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-527@lists.php.net to get a copy of this message
gregory Wed Sep 11 23:10:21 2002 EDT Modified files: /phpdoc-zh/chapters config.xml Log: Too long, translated partly...

Index: phpdoc-zh/chapters/config.xml diff -u phpdoc-zh/chapters/config.xml:1.4 phpdoc-zh/chapters/config.xml:1.5 --- phpdoc-zh/chapters/config.xml:1.4 Thu Aug 29 00:26:26 2002 +++ phpdoc-zh/chapters/config.xml Wed Sep 11 23:10:21 2002 @@ -1,47 +1,31 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- $Author: gregory $ --> <!-- EN-Revision: 1.72 Maintainer: verdana Status: recovered --> <chapter id="configuration"> - <title>Configuration</title> + <title>ÉèÖÃ</title> <sect1 id="configuration.file"> - <title>The configuration file</title> + <title>ÉèÖÃÎļþ</title> <simpara> - The configuration file (called <filename>php3.ini</filename> in - PHP 3.0, and simply &php.ini; as of PHP 4.0) - is read when PHP starts up. For the server module versions of PHP, - this happens only once when the web server is started. For the - <acronym>CGI</acronym> and <acronym>CLI</acronym> version, it happens on - every invocation. + µ± PHP Æô¶¯µÄʱºò£¬»á¶Á³öÉèÖÃÎļþ£¨ÔÚ PHP 3.0 ÖУ¬¸ÃÎļþÃûΪ <filename>php3.ini</filename>£¬ÔÚ PHP 4.0 ÖУ¬ÆäÃû³ÆÎª &php.ini;£©µÄÄÚÈÝ¡£¶ÔÓÚ PHP µÄ·þÎñÆ÷Ä£¿é°æ±¾£¬ÉèÖÃÎļþµÄ¶ÁÈ¡½öÔÚ WEB ·þÎñÆ÷Æô¶¯Ê±Ö´ÐС£¶ÔÓÚ <acronym>CGI</acronym> ºÍ <acronym>CLI</acronym> °æ±¾£¬Ã¿´ÎÖ´Ðж¼Òª¶ÁÈ¡ÉèÖᣠ</simpara> <para> - The default location of &php.ini; is a compile time option (see the <link - linkend="faq.installation.phpini">FAQ</link> entry), but can be changed - for the <acronym>CGI</acronym> and <acronym>CLI</acronym> version with the - <literal>-c</literal> command line switch, see the chapter about using - <literal>PHP</literal> from the <link - linkend="features.commandline">command line</link>. You can also use the - environment variable <literal>PHPRC</literal> for an additionaly path to - search for &php.ini;. + &php.ini; µÄĬÈÏλÖÃÊÇÔÚ PHP ±»±àÒëʱÉèÖõÄÑ¡ÏÇë²ÎÔÄ <link linkend="faq.installation.phpini">FAQ</link> ÖеÄÏà¹ØÌõÄ¿£©£¬µ«¶ÔÓÚ <acronym>CGI</acronym> ºÍ <acronym>CGI</acronym> °æ±¾£¬¸ÃÖµ¿ÉÒÔͨ¹ý <literal>-c</literal> ÃüÁîÐвÎÊýÀ´ÉèÖã¬Çë²ÎÔÄ¡°<link + linkend="features.commandline"><literal>PHP</literal> µÄÃüÁîÐÐģʽ</link>¡±ÓйØÕ½ڡ£ÄúÒ²¿ÉÒÔͨ¹ýÉèÖû·¾³±äÁ¿ <literal>PHPRC</literal> À´ÉèÖà &php.ini; Îļþ¶îÍâµÄËÑË÷·¾¶¡£ </para> <para> - Not every PHP directive is documented below. For a list of all directives, - please read your well commented &php.ini; file. You may want to view the - latest <ulink url="&url.php.cvs.phpini;">php.ini here</ulink> from CVS. + һϲ¢Ã»ÓÐÁгöËùÓÐµÄ PHP ÉèÖÃÑ¡Ïî¡£Èç¹ûÄúÐèÒªÁ˽âËùÓÐµÄ PHP ÉèÖÃÑ¡ÏÇëÔĶÁ &php.ini; ÎļþÖеÄ×¢ÊÍÐÅÏ¢¡£Äú¿ÉÒÔÔÚ<ulink url="&url.php.cvs.phpini;">ÕâÀï</ulink>·ÃÎÊ CVS ÌṩµÄ×îÐ嵀 php.ini Îļþ¡£ </para> <note> <para> - The default value for the PHP directive - <link linkend="ini.register-globals">register_globals</link> changed from - <emphasis>on</emphasis> to <emphasis>off</emphasis> in PHP - <ulink url="&url.php.release4.2.0;">4.2.0</ulink>. + PHP ÉèÖÃÑ¡Ïî <link linkend="ini.register-globals">register_globals</link> µÄĬÈÏÖµ×Ô <ulink url="&url.php.release4.2.0;">4.2.0</ulink> ÒÔºóÓÉ <emphasis>on</emphasis> ±äΪÁË <emphasis>off</emphasis>¡£ </para> </note> <para> <example> - <title>&php.ini; example</title> + <title>&php.ini; ·¶Àý</title> <programlisting role="ini"> <![CDATA[ ; any text on a line after an unquoted semicolon (;) is ignored @@ -64,75 +48,68 @@ </para> <simpara> - When using PHP as an Apache module, you can also change the - configuration settings using directives in Apache configuration - files and .htaccess files (You will need "AllowOverride - Options" or "AllowOverride All" privileges) + µ±°Ñ PHP ÓÃ×÷ Apache µÄÄ£¿éµÄʱºò£¬ÄúÒ²¿ÉÒÔͨ¹ý¸ü¸Ä Apache µÄÉèÖÃÎļþºÍ .htaccess Îļþ£¨ÐèÒª¡°AllowOverride Options¡± »òÕß ¡°AllowOverride All¡±È¨ÏÞ£©À´ÐÞ¸ÄÕâЩѡÏîÉ趨¡£ </simpara> <simpara> - With PHP 3.0, there are Apache directives that correspond to each - configuration setting in the <filename>php3.ini</filename> name, - except the name is prefixed by "php3_". + ¶ÔÓÚ PHP 3.0£¬<filename>php3.ini</filename> ÎļþÖÐÿһ¸öÉèÖÃÑ¡ÏîÔÚ Apache µÄÉèÖÃÖж¼ÓжÔÓ¦µÄÏîÄ¿£¬µ«²»°üÀ¨ÒÔ¡°php3_¡±¿ªÍ·µÄÑ¡Ïî¡£ </simpara> <para> - With PHP 4.0, there are several Apache directives that allow you - to change the PHP configuration from within the Apache - configuration file itself. + ¶ÔÓÚ PHP 4.0£¬ÔÚ Apache ÖÐÓÐÒÔÏÂÑ¡ÏîʹµÃÄú¿ÉÒÔÔÚ Apache µÄÉèÖÃÎļþÖиü¸Ä PHP ÉèÖᣠ<variablelist> <varlistentry> <term> <systemitem role="directive">php_value</systemitem> - <parameter>name</parameter> - <parameter>value</parameter> + <parameter>Ãû³Æ</parameter> + <parameter>Öµ</parameter> </term> <listitem> <para> - This sets the value of the specified variable.</para> + É趨ָ¶¨±äÁ¿µÄÖµ¡£ + </para> </listitem> </varlistentry> <varlistentry> <term> <systemitem role="directive">php_flag</systemitem> - <parameter>name</parameter> + <parameter>Ãû³Æ</parameter> <parameter>on|off</parameter> </term> <listitem> <para> - This is used to set a Boolean configuration option.</para> + ÉèÖò¼¶ûֵѡÏîµÄÖµ¡£ + </para> </listitem> </varlistentry> <varlistentry> <term> <systemitem role="directive">php_admin_value</systemitem> - <parameter>name</parameter> - <parameter>value</parameter> + <parameter>Ãû³Æ</parameter> + <parameter>Öµ</parameter> </term> <listitem> <para> - This sets the value of the specified variable. "Admin" - configuration settings can only be set from within the - main Apache configuration files, and not from .htaccess - files.</para> + ÉèÖÃÖ¸¶¨±äÁ¿µÄÖµ¡£¡°Admin¡±ÉèÖÃÑ¡ÏîµÄÉèÖýöÄÜÔÚ Apache µÄÉèÖÃÎļþÖнøÐУ¬¶ø²»ÄÜÔÚ .htaccess ÎļþÖнøÐС£ + </para> </listitem> </varlistentry> <varlistentry> <term> <systemitem role="directive">php_admin_flag</systemitem> - <parameter>name</parameter> + <parameter>Ãû³Æ</parameter> <parameter>on|off</parameter> </term> <listitem> <para> - This is used to set a Boolean configuration option.</para> + ÉèÖò¼¶ûֵѡÏîµÄÖµ¡£</para> </listitem> </varlistentry> </variablelist> </para> <para> <example> - <title>Apache configuration example</title> + <title>Apache ÉèÖ÷¶Àý</title> <programlisting role="ini"> <![CDATA[ <IfModule mod_php4.c> @@ -149,26 +126,17 @@ <note> <para> - PHP constants do not exist outside of PHP. For example, in - <filename>httpd.conf</filename> do not use PHP constants - such as <constant>E_ALL</constant> or <constant>E_NOTICE</constant> - to set the <link linkend="ini.error-reporting">error_reporting</link> - directive as they will have no meaning and will evaluate to - <emphasis>0</emphasis>. Use the associated bitmask values instead. - These constants can be used in &php.ini; + PHP µÄ³£Á¿²»´æÔÚÓÚ PHP Ö®Íâ¡£ÀýÈ磬ÔÚ <filename>httpd.conf</filename> ÖÐûÓÐʹÓÃÖîÈç <constant>E_ALL</constant> »òÕß <constant>E_NOTICE</constant> µÈ PHP ³£Á¿À´ÉèÖà <link linkend="ini.error-reporting">error_reporting</link> Ñ¡ÏîµÄÖµ£¬ÒòΪËüÃÇÊÇûÓÐÒâÒåµÄ£¬ÆäÖµµÈÓÚ0¡£ÇëʹÓöÔÓ¦µÄ¶þ½øÖÆÎ»ÑÚÂëÖµÀ´´úÌæ£¬ÕâЩ³£Á¿¿ÉÒÔÓÃÓÚ &php.ini;¡£ </para> </note> </para> <simpara> - You can view the settings of the configuration values in - the output of <function>phpinfo</function>. You can also - access the values of individual configuration settings using - <function>ini_get</function> or <function>get_cfg_var</function>. + Äú¿ÉÒÔͨ¹ý <function>phpinfo</function> º¯ÊýµÄÊä³öÀ´²é¿´Ñ¡ÏîÖµµÄÉ趨¡£Ò²¿ÉÒÔͨ¹ý <function>ini_get</function> »òÕß <function>get_cfg_var</function> º¯ÊýÀ´µ¥¶ÀµÄ·ÃÎÊijһ¸öÉ趨ѡÏîµÄÖµ¡£ </simpara> <sect2 id="ini.sect.general"> - <title>General Configuration Directives</title> + <title>Ò»°ãÉèÖÃÑ¡Ïî</title> <para> <variablelist> <varlistentry id="ini.allow-url-fopen">
« previous php.doc.zh (#527) next »