cvs: phpdoc-zh /appendices reserved.xml
| From: | Xiaoyu Huang | Date: | Sun, 11 Aug 2002 08:06:59 +0000 |
| Subject: | cvs: phpdoc-zh /appendices reserved.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-295@lists.php.net to get a copy of this message | ||
class007 Sun Aug 11 04:06:59 2002 EDT
Modified files:
/phpdoc-zh/appendices reserved.xml
Log:
ÎļþÌ«´ó£¬ÏÖÔÚÒѾÍê³ÉÒ»°ë¡£
Index: phpdoc-zh/appendices/reserved.xml diff -u phpdoc-zh/appendices/reserved.xml:1.1 phpdoc-zh/appendices/reserved.xml:1.2 --- phpdoc-zh/appendices/reserved.xml:1.1 Thu Aug 8 21:26:22 2002 +++ phpdoc-zh/appendices/reserved.xml Sun Aug 11 04:06:59 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: class007 $ --> <!-- EN-Revision: 1.23 Maintainer: class007 Status: ready --> @@ -254,30 +254,25 @@ <term>¡°<varname>argv</varname>¡±</term> <listitem> <simpara> - ´«µÝ¸ø¸Ã½Å±¾µÄ²ÎÊý¡£µ±½Å±¾ÔËÐÐÔÚÃüÁîÐз½Ê½Ê±£¬Array of arguments passed to the script. When the script is - run on the command line, this gives C-style access to the - command line parameters. When called via the GET method, this - will contain the query string. + ´«µÝ¸ø¸Ã½Å±¾µÄ²ÎÊý¡£µ±½Å±¾ÔËÐÐÔÚÃüÁîÐз½Ê½Ê±£¬argv ±äÁ¿´«µÝ¸ø³ÌÐò C ÓïÑÔÑùʽµÄÃüÁîÐвÎÊý¡£µ±µ÷Óà GET ·½·¨Ê±£¬¸Ã±äÁ¿°üº¬ÇëÇóµÄÊý¾Ý¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>argc</varname>'</term> + <term>¡°<varname>argc</varname>¡±</term> <listitem> <simpara> - Contains the number of command line parameters passed to the - script (if run on the command line). + °üº¬´«µÝ¸ø³ÌÐòµÄÃüÁîÐвÎÊýµÄ¸öÊý£¨Èç¹ûÔËÐÐÔÚÃüÁîÐÐģʽ£©¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>GATEWAY_INTERFACE</varname>'</term> + <term>¡°<varname>GATEWAY_INTERFACE</varname>¡±</term> <listitem> <simpara> - What revision of the CGI specification the server is using; - i.e. '<literal>CGI/1.1</literal>'. + ·þÎñÆ÷ʹÓÃµÄ CGI ¹æ·¶µÄ°æ±¾¡£ÀýÈ磬¡°<literal>CGI/1.1</literal>¡±¡£ </simpara> </listitem> </varlistentry> @@ -286,9 +281,7 @@ <term>'<varname>SERVER_NAME</varname>'</term> <listitem> <simpara> - The name of the server host under which the current script is - executing. If the script is running on a virtual host, this - will be the value defined for that virtual host. + µ±Ç°ÔËÐнű¾ËùÔÚ·þÎñÆ÷Ö÷»úµÄÃû³Æ¡£Èç¹û¸Ã½Å±¾ÔËÐÐÔÚÒ»¸öÐéÄâÖ÷»úÉÏ£¬¸ÃÃû³ÆÊÇÓÉÄǸöÐéÄâÖ÷»úËùÉèÖõÄÖµ¾ö¶¨¡£ </simpara> </listitem> </varlistentry> @@ -297,261 +290,222 @@ <term>'<varname>SERVER_SOFTWARE</varname>'</term> <listitem> <simpara> - Server identification string, given in the headers when - responding to requests. + ·þÎñÆ÷±êʶµÄ×Ö´®£¬ÔÚÏìÓ¦ÇëÇóʱµÄÍ·²¿Öиø³ö¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SERVER_PROTOCOL</varname>'</term> + <term>¡°<varname>SERVER_PROTOCOL</varname>¡±</term> <listitem> <simpara> - Name and revision of the information protocol via which the - page was requested; i.e. '<literal>HTTP/1.0</literal>'; + ÇëÇóÒ³ÃæÊ±Í¨ÐÅÐÒéµÄÃû³ÆºÍ°æ±¾¡£ÀýÈ磬¡°<literal>HTTP/1.0</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>REQUEST_METHOD</varname>'</term> + <term>¡°<varname>REQUEST_METHOD</varname>¡±</term> <listitem> <simpara> - Which request method was used to access the page; i.e. '<literal>GET</literal>', - '<literal>HEAD</literal>', '<literal>POST</literal>', '<literal>PUT</literal>'. + ·ÃÎÊÒ³ÃæÊ±µÄÇëÇó·½·¨¡£ÀýÈ磺¡°<literal>GET</literal>¡±¡¢¡°<literal>HEAD</literal>¡±£¬¡°<literal>POST</literal>¡±£¬¡°<literal>PUT</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>QUERY_STRING</varname>'</term> + <term>¡°<varname>QUERY_STRING</varname>¡±</term> <listitem> <simpara> - The query string, if any, via which the page was accessed. + ²éѯ(query)µÄ×Ö·û´®¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>DOCUMENT_ROOT</varname>'</term> + <term>¡°<varname>DOCUMENT_ROOT</varname>¡±</term> <listitem> <simpara> - The document root directory under which the current script is - executing, as defined in the server's configuration file. + µ±Ç°ÔËÐнű¾ËùÔÚµÄÎĵµ¸ùĿ¼¡£ÔÚ·þÎñÆ÷ÅäÖÃÎļþÖж¨Òå¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_ACCEPT</varname>'</term> + <term>¡°<varname>HTTP_ACCEPT</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Accept:</literal> header from the - current request, if there is one. + µ±Ç°ÇëÇóµÄ <literal>Accept:</literal> Í·²¿µÄÄÚÈÝ¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_ACCEPT_CHARSET</varname>'</term> + <term>¡°<varname>HTTP_ACCEPT_CHARSET</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Accept-Charset:</literal> header - from the current request, if there is one. Example: - '<literal>iso-8859-1,*,utf-8</literal>'. + µ±Ç°ÇëÇóµÄ <literal>Accept-Charset:</literal> Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺¡°<literal>iso-8859-1,*,utf-8</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_ACCEPT_ENCODING</varname>'</term> + <term>¡°<varname>HTTP_ACCEPT_ENCODING</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Accept-Encoding:</literal> header - from the current request, if there is one. Example: '<literal>gzip</literal>'. + µ±Ç°ÇëÇóµÄ <literal>Accept-Encoding:</literal> Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺¡°<literal>gzip</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_ACCEPT_LANGUAGE</varname>'</term> + <term>¡°<varname>HTTP_ACCEPT_LANGUAGE</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Accept-Language:</literal> header - from the current request, if there is one. Example: '<literal>en</literal>'. + µ±Ç°ÇëÇóµÄ <literal>Accept-Language:</literal> Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺¡°<literal>en</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_CONNECTION</varname>'</term> + <term>¡°<varname>HTTP_CONNECTION</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Connection:</literal> header from - the current request, if there is one. Example: '<literal>Keep-Alive</literal>'. + µ±Ç°ÇëÇóµÄ <literal>Connection:</literal> Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺¡°<literal>Keep-Alive</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_HOST</varname>'</term> + <term>¡°<varname>HTTP_HOST</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Host:</literal> header from the - current request, if there is one. + µ±Ç°ÇëÇóµÄ <literal>Host:</literal> Í·²¿µÄÄÚÈÝ¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_REFERER</varname>'</term> + <term>¡°<varname>HTTP_REFERER</varname>¡±</term> <listitem> <simpara> - The address of the page (if any) which referred the user - agent to the current page. This is set by the user agent. Not - all user agents will set this, and some provide the ability - to modify <varname>HTTP_REFERER</varname> as a feature. In - short, it cannot really be trusted. + Á´½Óµ½µ±Ç°Ò³ÃæµÄÇ°Ò»Ò³ÃæµÄ URL µØÖ·¡£²»ÊÇËùÓеÄÓû§´úÀí£¨ä¯ÀÀÆ÷£©¶¼»áÉèÖÃÕâ¸ö±äÁ¿£¬¶øÇÒÓеϹ¿ÉÒÔÊÖ¹¤ÐÞ¸Ä <varname>HTTP_REFERER</varname>¡£Òò´Ë£¬Õâ¸ö±äÁ¿²»×ÜÊÇÕýÈ·ÕæÊµµÄ¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_USER_AGENT</varname>'</term> + <term>¡°<varname>HTTP_USER_AGENT</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>User_Agent:</literal> header from - the current request, if there is one. This is a string - denoting the user agent being which is accessing the page. A - typical example is: <computeroutput>Mozilla/4.5 [en] (X11; U; - Linux 2.2.9 i586)</computeroutput>. Among other things, you - can use this value with <function>get_browser</function> to - tailor your page's output to the capabilities of the user - agent. + µ±Ç°ÇëÇóµÄ <literal>User_Agent:</literal> Í·²¿µÄÄÚÈÝ¡£¸Ã×Ö·û´®±íÃ÷ÁË·ÃÎʸÃÒ³ÃæµÄÓû§´úÀíµÄÐÅÏ¢¡£Ò»¸öµäÐ͵ÄÀý×ÓÊÇ£º<computeroutput>Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)</computeroutput>¡£ÄúÒ²¿ÉÒÔʹÓà <function>get_browser</function> µÃµ½Õâ¸öÐÅÏ¢¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>REMOTE_ADDR</varname>'</term> + <term>¡°<varname>REMOTE_ADDR</varname>¡±</term> <listitem> <simpara> - The IP address from which the user is viewing the current - page. + ÕýÔÚä¯ÀÀµ±Ç°Ò³ÃæÓû§µÄ IP µØÖ·¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>REMOTE_PORT</varname>'</term> + <term>¡°<varname>REMOTE_PORT</varname>¡±</term> <listitem> <simpara> - The port being used on the user's machine to communicate with - the web server. + Óû§Á¬½Óµ½·þÎñÆ÷ʱËùʹÓõĶ˿ڡ£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SCRIPT_FILENAME</varname>'</term> + <term>¡°<varname>SCRIPT_FILENAME</varname>¡±</term> <listitem> <simpara> - The absolute pathname of the currently executing script. + µ±Ç°Ö´Ðнű¾µÄ¾ø¶Ô·¾¶Ãû¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SERVER_ADMIN</varname>'</term> + <term>¡°<varname>SERVER_ADMIN</varname>¡±</term> <listitem> <simpara> - The value given to the SERVER_ADMIN (for Apache) directive in - the web server configuration file. If the script is running - on a virtual host, this will be the value defined for that - virtual host. - </simpara> + ¸ÃÖµÖ¸Ã÷ÁË Apache ·þÎñÆ÷ÅäÖÃÎļþÖÐµÄ SERVER_ADMIN ²ÎÊý¡£Èç¹û½Å±¾ÔËÐÐÔÚÒ»¸öÐéÄâÖ÷»úÉÏ£¬Ôò¸ÃÖµÊÇÄǸöÐéÄâÖ÷»úµÄÖµ¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SERVER_PORT</varname>'</term> + <term>¡°<varname>SERVER_PORT</varname>¡±</term> <listitem> <simpara> - The port on the server machine being used by the web server - for communication. For default setups, this will be '<literal>80</literal>'; - using SSL, for instance, will change this to whatever your - defined secure HTTP port is. + ·þÎñÆ÷ËùʹÓõĶ˿ڡ£Ä¬ÈÏΪ¡°<literal>80</literal>¡±¡£Èç¹ûÄãʹÓà SSL °²È«Á¬½Ó£¬ÔòÕâ¸öֵΪÄúËùÉèÖÃµÄ HTTP ¶Ë¿Ú¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SERVER_SIGNATURE</varname>'</term> + <term>¡°<varname>SERVER_SIGNATURE</varname>¡±</term> <listitem> <simpara> - String containing the server version and virtual host name - which are added to server-generated pages, if enabled. + °üº¬·þÎñÆ÷°æ±¾ºÍÐéÄâÖ÷»úÃûµÄ×Ö·û´®¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>PATH_TRANSLATED</varname>'</term> + <term>¡°<varname>PATH_TRANSLATED</varname>¡±</term> <listitem> <simpara> - Filesystem- (not document root-) based path to the current - script, after the server has done any virtual-to-real - mapping. + µ±Ç°½Å±¾ËùÔÚÎļþϵͳ£¨²»ÊÇÎĵµ¸ùĿ¼£©µÄ»ù±¾Â·¾¶¡£ÕâÊÇÔÚ·þÎñÆ÷½øÐÐÐéÄâµ½ÕæÊµÂ·¾¶µÄÓ³ÏñºóµÄ½á¹û¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SCRIPT_NAME</varname>'</term> + <term>¡°<varname>SCRIPT_NAME</varname>¡±</term> <listitem> <simpara> - Contains the current script's path. This is useful for pages - which need to point to themselves. + °üº¬µ±Ç°½Å±¾µÄ·¾¶¡£ÕâÔÚÒ³ÃæÐèÒªÖ¸Ïò×Ô¼ºÊ±·Ç³£ÓÐÓᣠ</simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>REQUEST_URI</varname>'</term> + <term>¡°<varname>REQUEST_URI</varname>¡±</term> <listitem> <simpara> - The URI which was given in order to access this page; for - instance, '<literal>/index.html</literal>'. + ·ÃÎÊ´ËÒ³ÃæËùÐèµÄ URI¡£ÀýÈ磬¡°<literal>/index.html</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>PHP_AUTH_USER</varname>'</term> + <term>¡°<varname>PHP_AUTH_USER</varname>¡±</term> <listitem> <simpara> - When running under Apache as module doing HTTP authentication this - variable is set to the username prodived by the user. + µ± PHP ÔËÐÐÔÚ Apache Ä£¿é·½Ê½Ï£¬²¢ÇÒÕýÔÚʹÓà HTTP ÈÏÖ¤¹¦ÄÜ£¬Õâ¸ö±äÁ¿±ãÊÇÓû§ÊäÈëµÄÓû§Ãû¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>PHP_AUTH_PW</varname>'</term> + <term>¡°<varname>PHP_AUTH_PW</varname>¡±</term> <listitem> <simpara> - When running under Apache as module doing HTTP authentication this - variable is set to the password prodived by the user. + µ± PHP ÔËÐÐÔÚ Apache Ä£¿é·½Ê½Ï£¬²¢ÇÒÕýÔÚʹÓà HTTP ÈÏÖ¤¹¦ÄÜ£¬Õâ¸ö±äÁ¿±ãÊÇÓû§ÊäÈëµÄÃÜÂë¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>PHP_AUTH_TYPE</varname>'</term> + <term>¡°<varname>PHP_AUTH_TYPE</varname>¡±</term> <listitem> <simpara> - When running under Apache as module doing HTTP authenticated this - variable is set to the authentication type. + µ± PHP ÔËÐÐÔÚ Apache Ä£¿é·½Ê½Ï£¬²¢ÇÒÕýÔÚʹÓà HTTP ÈÏÖ¤¹¦ÄÜ£¬Õâ¸ö±äÁ¿±ãÊÇÈÏÖ¤µÄÀàÐÍ¡£ </simpara> </listitem> </varlistentry> @@ -562,12 +516,11 @@ </sect2> <sect2 id="reserved.variables.environment"> - <title>Environment variables: <varname>$_ENV</varname></title> + <title>»·¾³±äÁ¿£º<varname>$_ENV</varname></title> <note> <simpara> - Introduced in 4.1.0. In earlier versions, use - <varname>$HTTP_ENV_VARS</varname>. + ÔÚ PHP 4.1.0 ¼°ÒÔºó°æ±¾Ê¹Óá£Ö®Ç°µÄ°æ±¾£¬Ê¹Óà <varname>$HTTP_ENV_VARS</varname>¡£ </simpara> </note>
Index: phpdoc-zh/appendices/reserved.xml diff -u phpdoc-zh/appendices/reserved.xml:1.1 phpdoc-zh/appendices/reserved.xml:1.2 --- phpdoc-zh/appendices/reserved.xml:1.1 Thu Aug 8 21:26:22 2002 +++ phpdoc-zh/appendices/reserved.xml Sun Aug 11 04:06:59 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: class007 $ --> <!-- EN-Revision: 1.23 Maintainer: class007 Status: ready --> @@ -254,30 +254,25 @@ <term>¡°<varname>argv</varname>¡±</term> <listitem> <simpara> - ´«µÝ¸ø¸Ã½Å±¾µÄ²ÎÊý¡£µ±½Å±¾ÔËÐÐÔÚÃüÁîÐз½Ê½Ê±£¬Array of arguments passed to the script. When the script is - run on the command line, this gives C-style access to the - command line parameters. When called via the GET method, this - will contain the query string. + ´«µÝ¸ø¸Ã½Å±¾µÄ²ÎÊý¡£µ±½Å±¾ÔËÐÐÔÚÃüÁîÐз½Ê½Ê±£¬argv ±äÁ¿´«µÝ¸ø³ÌÐò C ÓïÑÔÑùʽµÄÃüÁîÐвÎÊý¡£µ±µ÷Óà GET ·½·¨Ê±£¬¸Ã±äÁ¿°üº¬ÇëÇóµÄÊý¾Ý¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>argc</varname>'</term> + <term>¡°<varname>argc</varname>¡±</term> <listitem> <simpara> - Contains the number of command line parameters passed to the - script (if run on the command line). + °üº¬´«µÝ¸ø³ÌÐòµÄÃüÁîÐвÎÊýµÄ¸öÊý£¨Èç¹ûÔËÐÐÔÚÃüÁîÐÐģʽ£©¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>GATEWAY_INTERFACE</varname>'</term> + <term>¡°<varname>GATEWAY_INTERFACE</varname>¡±</term> <listitem> <simpara> - What revision of the CGI specification the server is using; - i.e. '<literal>CGI/1.1</literal>'. + ·þÎñÆ÷ʹÓÃµÄ CGI ¹æ·¶µÄ°æ±¾¡£ÀýÈ磬¡°<literal>CGI/1.1</literal>¡±¡£ </simpara> </listitem> </varlistentry> @@ -286,9 +281,7 @@ <term>'<varname>SERVER_NAME</varname>'</term> <listitem> <simpara> - The name of the server host under which the current script is - executing. If the script is running on a virtual host, this - will be the value defined for that virtual host. + µ±Ç°ÔËÐнű¾ËùÔÚ·þÎñÆ÷Ö÷»úµÄÃû³Æ¡£Èç¹û¸Ã½Å±¾ÔËÐÐÔÚÒ»¸öÐéÄâÖ÷»úÉÏ£¬¸ÃÃû³ÆÊÇÓÉÄǸöÐéÄâÖ÷»úËùÉèÖõÄÖµ¾ö¶¨¡£ </simpara> </listitem> </varlistentry> @@ -297,261 +290,222 @@ <term>'<varname>SERVER_SOFTWARE</varname>'</term> <listitem> <simpara> - Server identification string, given in the headers when - responding to requests. + ·þÎñÆ÷±êʶµÄ×Ö´®£¬ÔÚÏìÓ¦ÇëÇóʱµÄÍ·²¿Öиø³ö¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SERVER_PROTOCOL</varname>'</term> + <term>¡°<varname>SERVER_PROTOCOL</varname>¡±</term> <listitem> <simpara> - Name and revision of the information protocol via which the - page was requested; i.e. '<literal>HTTP/1.0</literal>'; + ÇëÇóÒ³ÃæÊ±Í¨ÐÅÐÒéµÄÃû³ÆºÍ°æ±¾¡£ÀýÈ磬¡°<literal>HTTP/1.0</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>REQUEST_METHOD</varname>'</term> + <term>¡°<varname>REQUEST_METHOD</varname>¡±</term> <listitem> <simpara> - Which request method was used to access the page; i.e. '<literal>GET</literal>', - '<literal>HEAD</literal>', '<literal>POST</literal>', '<literal>PUT</literal>'. + ·ÃÎÊÒ³ÃæÊ±µÄÇëÇó·½·¨¡£ÀýÈ磺¡°<literal>GET</literal>¡±¡¢¡°<literal>HEAD</literal>¡±£¬¡°<literal>POST</literal>¡±£¬¡°<literal>PUT</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>QUERY_STRING</varname>'</term> + <term>¡°<varname>QUERY_STRING</varname>¡±</term> <listitem> <simpara> - The query string, if any, via which the page was accessed. + ²éѯ(query)µÄ×Ö·û´®¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>DOCUMENT_ROOT</varname>'</term> + <term>¡°<varname>DOCUMENT_ROOT</varname>¡±</term> <listitem> <simpara> - The document root directory under which the current script is - executing, as defined in the server's configuration file. + µ±Ç°ÔËÐнű¾ËùÔÚµÄÎĵµ¸ùĿ¼¡£ÔÚ·þÎñÆ÷ÅäÖÃÎļþÖж¨Òå¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_ACCEPT</varname>'</term> + <term>¡°<varname>HTTP_ACCEPT</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Accept:</literal> header from the - current request, if there is one. + µ±Ç°ÇëÇóµÄ <literal>Accept:</literal> Í·²¿µÄÄÚÈÝ¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_ACCEPT_CHARSET</varname>'</term> + <term>¡°<varname>HTTP_ACCEPT_CHARSET</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Accept-Charset:</literal> header - from the current request, if there is one. Example: - '<literal>iso-8859-1,*,utf-8</literal>'. + µ±Ç°ÇëÇóµÄ <literal>Accept-Charset:</literal> Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺¡°<literal>iso-8859-1,*,utf-8</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_ACCEPT_ENCODING</varname>'</term> + <term>¡°<varname>HTTP_ACCEPT_ENCODING</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Accept-Encoding:</literal> header - from the current request, if there is one. Example: '<literal>gzip</literal>'. + µ±Ç°ÇëÇóµÄ <literal>Accept-Encoding:</literal> Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺¡°<literal>gzip</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_ACCEPT_LANGUAGE</varname>'</term> + <term>¡°<varname>HTTP_ACCEPT_LANGUAGE</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Accept-Language:</literal> header - from the current request, if there is one. Example: '<literal>en</literal>'. + µ±Ç°ÇëÇóµÄ <literal>Accept-Language:</literal> Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺¡°<literal>en</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_CONNECTION</varname>'</term> + <term>¡°<varname>HTTP_CONNECTION</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Connection:</literal> header from - the current request, if there is one. Example: '<literal>Keep-Alive</literal>'. + µ±Ç°ÇëÇóµÄ <literal>Connection:</literal> Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺¡°<literal>Keep-Alive</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_HOST</varname>'</term> + <term>¡°<varname>HTTP_HOST</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>Host:</literal> header from the - current request, if there is one. + µ±Ç°ÇëÇóµÄ <literal>Host:</literal> Í·²¿µÄÄÚÈÝ¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_REFERER</varname>'</term> + <term>¡°<varname>HTTP_REFERER</varname>¡±</term> <listitem> <simpara> - The address of the page (if any) which referred the user - agent to the current page. This is set by the user agent. Not - all user agents will set this, and some provide the ability - to modify <varname>HTTP_REFERER</varname> as a feature. In - short, it cannot really be trusted. + Á´½Óµ½µ±Ç°Ò³ÃæµÄÇ°Ò»Ò³ÃæµÄ URL µØÖ·¡£²»ÊÇËùÓеÄÓû§´úÀí£¨ä¯ÀÀÆ÷£©¶¼»áÉèÖÃÕâ¸ö±äÁ¿£¬¶øÇÒÓеϹ¿ÉÒÔÊÖ¹¤ÐÞ¸Ä <varname>HTTP_REFERER</varname>¡£Òò´Ë£¬Õâ¸ö±äÁ¿²»×ÜÊÇÕýÈ·ÕæÊµµÄ¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>HTTP_USER_AGENT</varname>'</term> + <term>¡°<varname>HTTP_USER_AGENT</varname>¡±</term> <listitem> <simpara> - Contents of the <literal>User_Agent:</literal> header from - the current request, if there is one. This is a string - denoting the user agent being which is accessing the page. A - typical example is: <computeroutput>Mozilla/4.5 [en] (X11; U; - Linux 2.2.9 i586)</computeroutput>. Among other things, you - can use this value with <function>get_browser</function> to - tailor your page's output to the capabilities of the user - agent. + µ±Ç°ÇëÇóµÄ <literal>User_Agent:</literal> Í·²¿µÄÄÚÈÝ¡£¸Ã×Ö·û´®±íÃ÷ÁË·ÃÎʸÃÒ³ÃæµÄÓû§´úÀíµÄÐÅÏ¢¡£Ò»¸öµäÐ͵ÄÀý×ÓÊÇ£º<computeroutput>Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)</computeroutput>¡£ÄúÒ²¿ÉÒÔʹÓà <function>get_browser</function> µÃµ½Õâ¸öÐÅÏ¢¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>REMOTE_ADDR</varname>'</term> + <term>¡°<varname>REMOTE_ADDR</varname>¡±</term> <listitem> <simpara> - The IP address from which the user is viewing the current - page. + ÕýÔÚä¯ÀÀµ±Ç°Ò³ÃæÓû§µÄ IP µØÖ·¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>REMOTE_PORT</varname>'</term> + <term>¡°<varname>REMOTE_PORT</varname>¡±</term> <listitem> <simpara> - The port being used on the user's machine to communicate with - the web server. + Óû§Á¬½Óµ½·þÎñÆ÷ʱËùʹÓõĶ˿ڡ£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SCRIPT_FILENAME</varname>'</term> + <term>¡°<varname>SCRIPT_FILENAME</varname>¡±</term> <listitem> <simpara> - The absolute pathname of the currently executing script. + µ±Ç°Ö´Ðнű¾µÄ¾ø¶Ô·¾¶Ãû¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SERVER_ADMIN</varname>'</term> + <term>¡°<varname>SERVER_ADMIN</varname>¡±</term> <listitem> <simpara> - The value given to the SERVER_ADMIN (for Apache) directive in - the web server configuration file. If the script is running - on a virtual host, this will be the value defined for that - virtual host. - </simpara> + ¸ÃÖµÖ¸Ã÷ÁË Apache ·þÎñÆ÷ÅäÖÃÎļþÖÐµÄ SERVER_ADMIN ²ÎÊý¡£Èç¹û½Å±¾ÔËÐÐÔÚÒ»¸öÐéÄâÖ÷»úÉÏ£¬Ôò¸ÃÖµÊÇÄǸöÐéÄâÖ÷»úµÄÖµ¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SERVER_PORT</varname>'</term> + <term>¡°<varname>SERVER_PORT</varname>¡±</term> <listitem> <simpara> - The port on the server machine being used by the web server - for communication. For default setups, this will be '<literal>80</literal>'; - using SSL, for instance, will change this to whatever your - defined secure HTTP port is. + ·þÎñÆ÷ËùʹÓõĶ˿ڡ£Ä¬ÈÏΪ¡°<literal>80</literal>¡±¡£Èç¹ûÄãʹÓà SSL °²È«Á¬½Ó£¬ÔòÕâ¸öֵΪÄúËùÉèÖÃµÄ HTTP ¶Ë¿Ú¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SERVER_SIGNATURE</varname>'</term> + <term>¡°<varname>SERVER_SIGNATURE</varname>¡±</term> <listitem> <simpara> - String containing the server version and virtual host name - which are added to server-generated pages, if enabled. + °üº¬·þÎñÆ÷°æ±¾ºÍÐéÄâÖ÷»úÃûµÄ×Ö·û´®¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>PATH_TRANSLATED</varname>'</term> + <term>¡°<varname>PATH_TRANSLATED</varname>¡±</term> <listitem> <simpara> - Filesystem- (not document root-) based path to the current - script, after the server has done any virtual-to-real - mapping. + µ±Ç°½Å±¾ËùÔÚÎļþϵͳ£¨²»ÊÇÎĵµ¸ùĿ¼£©µÄ»ù±¾Â·¾¶¡£ÕâÊÇÔÚ·þÎñÆ÷½øÐÐÐéÄâµ½ÕæÊµÂ·¾¶µÄÓ³ÏñºóµÄ½á¹û¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>SCRIPT_NAME</varname>'</term> + <term>¡°<varname>SCRIPT_NAME</varname>¡±</term> <listitem> <simpara> - Contains the current script's path. This is useful for pages - which need to point to themselves. + °üº¬µ±Ç°½Å±¾µÄ·¾¶¡£ÕâÔÚÒ³ÃæÐèÒªÖ¸Ïò×Ô¼ºÊ±·Ç³£ÓÐÓᣠ</simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>REQUEST_URI</varname>'</term> + <term>¡°<varname>REQUEST_URI</varname>¡±</term> <listitem> <simpara> - The URI which was given in order to access this page; for - instance, '<literal>/index.html</literal>'. + ·ÃÎÊ´ËÒ³ÃæËùÐèµÄ URI¡£ÀýÈ磬¡°<literal>/index.html</literal>¡±¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>PHP_AUTH_USER</varname>'</term> + <term>¡°<varname>PHP_AUTH_USER</varname>¡±</term> <listitem> <simpara> - When running under Apache as module doing HTTP authentication this - variable is set to the username prodived by the user. + µ± PHP ÔËÐÐÔÚ Apache Ä£¿é·½Ê½Ï£¬²¢ÇÒÕýÔÚʹÓà HTTP ÈÏÖ¤¹¦ÄÜ£¬Õâ¸ö±äÁ¿±ãÊÇÓû§ÊäÈëµÄÓû§Ãû¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>PHP_AUTH_PW</varname>'</term> + <term>¡°<varname>PHP_AUTH_PW</varname>¡±</term> <listitem> <simpara> - When running under Apache as module doing HTTP authentication this - variable is set to the password prodived by the user. + µ± PHP ÔËÐÐÔÚ Apache Ä£¿é·½Ê½Ï£¬²¢ÇÒÕýÔÚʹÓà HTTP ÈÏÖ¤¹¦ÄÜ£¬Õâ¸ö±äÁ¿±ãÊÇÓû§ÊäÈëµÄÃÜÂë¡£ </simpara> </listitem> </varlistentry> <varlistentry> - <term>'<varname>PHP_AUTH_TYPE</varname>'</term> + <term>¡°<varname>PHP_AUTH_TYPE</varname>¡±</term> <listitem> <simpara> - When running under Apache as module doing HTTP authenticated this - variable is set to the authentication type. + µ± PHP ÔËÐÐÔÚ Apache Ä£¿é·½Ê½Ï£¬²¢ÇÒÕýÔÚʹÓà HTTP ÈÏÖ¤¹¦ÄÜ£¬Õâ¸ö±äÁ¿±ãÊÇÈÏÖ¤µÄÀàÐÍ¡£ </simpara> </listitem> </varlistentry> @@ -562,12 +516,11 @@ </sect2> <sect2 id="reserved.variables.environment"> - <title>Environment variables: <varname>$_ENV</varname></title> + <title>»·¾³±äÁ¿£º<varname>$_ENV</varname></title> <note> <simpara> - Introduced in 4.1.0. In earlier versions, use - <varname>$HTTP_ENV_VARS</varname>. + ÔÚ PHP 4.1.0 ¼°ÒÔºó°æ±¾Ê¹Óá£Ö®Ç°µÄ°æ±¾£¬Ê¹Óà <varname>$HTTP_ENV_VARS</varname>¡£ </simpara> </note>