cvs: phpdoc-zh /reference/apache reference.xml /reference/apache/functions apache-lookup-uri.xml
| From: | Dallas Thunder | Date: | Mon, 15 Aug 2005 21:08:53 +0000 |
| Subject: | cvs: phpdoc-zh /reference/apache reference.xml /reference/apache/functions apache-lookup-uri.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2288@lists.php.net to get a copy of this message | ||
dallas Mon Aug 15 17:08:53 2005 EDT
Modified files:
/phpdoc-zh/reference/apache reference.xml
/phpdoc-zh/reference/apache/functions apache-lookup-uri.xml
Log:
Updated.
http://cvs.php.net/diff.php/phpdoc-zh/reference/apache/reference.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc-zh/reference/apache/reference.xml
diff -u phpdoc-zh/reference/apache/reference.xml:1.7 phpdoc-zh/reference/apache/reference.xml:1.8
--- phpdoc-zh/reference/apache/reference.xml:1.7 Tue Sep 2 17:28:48 2003
+++ phpdoc-zh/reference/apache/reference.xml Mon Aug 15 17:08:52 2005
@@ -1,24 +1,38 @@
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.6 $ -->
<!-- $Author: gregory $ -->
-<!-- EN-Revision: 1.6 Maintainer: thomaslio Status: ready -->
-<!-- CREDITS: dallas -->
+<!-- EN-Revision: 1.10 Maintainer: dallas Status: ready -->
<reference id="ref.apache">
- <title>Apache º¯Êý¿â</title>
+ <title>Apache ÌØÓк¯Êý¿â</title>
<titleabbrev>Apache</titleabbrev>
<partintro>
<section id="apache.intro">
&reftitle.intro;
<para>
- ÕâЩº¯Êý½öÔÚ PHP ×÷Ϊ Apache 1.x µÄÄ£¿éÔËÐÐʱ¿ÉÓá£
+ ±¾º¯Êý¿â½öÔÚ PHP ×÷Ϊ Apache µÄÄ£¿éÔËÐÐʱ¿ÉÓá£
</para>
+ <note>
+ <simpara>
+ ×Ô PHP 4.3.2 Æð£¬Apache 2 <acronym>SAPI</acronym>
+ Öв»ÔÙÏñºÍ Apache 1 ÖÐÏà·´ÄÇÑùÒþº¬É趨
+ <envar>PATH_TRANSLATED</envar>£¬Ëü½«±»ÉèΪ
<envar>SCRIPT_FILENAME</envar>
+ ·þÎñÆ÷»·¾³±äÁ¿¶ø²»ÊÇÓÉ Apache
²úÉú¡£´ËÐÞ¸ÄÊÇΪÁË·ûºÏ
+ <acronym>CGI</acronym> ¹æ·¶£¬<envar>PATH_TRANSLATED</envar>
+ Ó¦½öÔÚ¶¨ÒåÁË <envar>PATH_INFO</envar> ֮ʱ²ÅÓÐЧ¡£
+ </simpara>
+ <simpara>
+ Apache 2 Óû§¿ÉÒÔÔÚ <filename>httpd.conf</filename>
+ ÖÐʹÓà <literal>AcceptPathInfo = On</literal> À´¶¨Òå
+ <envar>PATH_INFO</envar>¡£
+ </simpara>
+ </note>
</section>
<section id="apache.installation">
&reftitle.install;
<para>
- PHP ÔÚ Apache 1.x ϵݲװ¼û°²×°Ò»ÕÂÖеÄ
- <link linkend='install.apache'>Apache ·þÎñÆ÷ 1.x
°æ±¾</link>Ò»½Ú¡£
+ PHP ÔÚ Apache Öеݲװ¼û<link
+ linkend='install'>°²×°</link>Ò»Õ¡£
</para>
</section>
@@ -35,7 +49,7 @@
</section>
</partintro>
-&reference.apache.functions;
+ &reference.apache.functions;
</reference>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/phpdoc-zh/reference/apache/functions/apache-lookup-uri.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-zh/reference/apache/functions/apache-lookup-uri.xml
diff -u phpdoc-zh/reference/apache/functions/apache-lookup-uri.xml:1.3
phpdoc-zh/reference/apache/functions/apache-lookup-uri.xml:1.4
--- phpdoc-zh/reference/apache/functions/apache-lookup-uri.xml:1.3 Tue Sep 2 18:05:06 2003
+++ phpdoc-zh/reference/apache/functions/apache-lookup-uri.xml Mon Aug 15 17:08:53 2005
@@ -1,54 +1,121 @@
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.2 $ -->
<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.2 Maintainer: thomaslio Status: ready -->
-<!-- CREDITS: dallas -->
- <refentry id="function.apache-lookup-uri">
- <refnamediv>
- <refname>apache_lookup_uri</refname>
- <refpurpose>
- ¶ÔÖ¸¶¨µÄ URI
Ö´Ðоֲ¿ÇëÇó²¢ÇÒ·µ»ØÓëÆäÓйصÄÈ«²¿ÐÅÏ¢
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>˵Ã÷</title>
- <methodsynopsis>
- <type>object</type><methodname>apache_lookup_uri</methodname>
-
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
- </methodsynopsis>
- <para>
- ±¾º¯Êý¶Ô URI
Ö´Ðоֲ¿ÇëÇ󡣴˺¯Êý½ö½öÖ´Ðе½×ãÒÔÈ¡µÃÖ¸¶¨×ÊÔ´µÄËùÓÐÖØÒªÐÅϢΪֹ£¬²¢½«ÐÅÏ¢·µ»Øµ½Ò»¸öÀàÖС£·µ»ØÀàµÄÊôÐÔΪ£º
- <simplelist>
- <member>status</member>
- <member>the_request</member>
- <member>status_line</member>
- <member>method</member>
- <member>content_type</member>
- <member>handler</member>
- <member>uri</member>
- <member>filename</member>
- <member>path_info</member>
- <member>args</member>
- <member>boundary</member>
- <member>no_cache</member>
- <member>no_local_copy</member>
- <member>allowed</member>
- <member>send_bodyct</member>
- <member>bytes_sent</member>
- <member>byterange</member>
- <member>clength</member>
- <member>unparsed_uri</member>
- <member>mtime</member>
- <member>request_time</member>
- </simplelist>
- </para>
- <note>
- <simpara>
- <function>apache_lookup_uri</function> Ö»ÄÜÔËÐÐÓÚ PHP µÄ apache
Ä£¿é·½Ê½¡£
- </simpara>
- </note>
- </refsect1>
- </refentry>
+<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready -->
+<refentry id="function.apache-lookup-uri">
+ <refnamediv>
+ <refname>apache_lookup_uri</refname>
+ <refpurpose>¶ÔÖ¸¶¨µÄ URI
Ö´Ðв¿·ÖÇëÇó²¢·µ»ØËùÓÐÓйØÐÅÏ¢</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>object</type><methodname>apache_lookup_uri</methodname>
+
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ ±¾º¯Êý¶ÔÒ»¸ö URL
Ö´Ðв¿·ÖÇëÇó¡£È¡µÃËùÓÐÓйظø¶¨×ÊÔ´µÄÖØÒªÐÅÏ¢ºó¾ÍÍ£ÊÖ¡£
+ </para>
+ &apache.req.module;
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>filename</parameter></term>
+ <listitem>
+ <para>
+ ±»ÇëÇóµÄÎļþÃû£¨URI£©£¬Ê§°ÜʱΪ &false;¡£
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Ò»¸öÓÐ¹Ø URI ÐÅÏ¢µÄ <type>object</type>¡£´Ë
+ <type>object</type> µÄÊôÐÔÓУº
+ </para>
+ <para>
+ <simplelist>
+ <member>status</member>
+ <member>the_request</member>
+ <member>status_line</member>
+ <member>method</member>
+ <member>content_type</member>
+ <member>handler</member>
+ <member>uri</member>
+ <member>filename</member>
+ <member>path_info</member>
+ <member>args</member>
+ <member>boundary</member>
+ <member>no_cache</member>
+ <member>no_local_copy</member>
+ <member>allowed</member>
+ <member>send_bodyct</member>
+ <member>bytes_sent</member>
+ <member>byterange</member>
+ <member>clength</member>
+ <member>unparsed_uri</member>
+ <member>mtime</member>
+ <member>request_time</member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>apache_lookup_uri</function> Àý×Ó</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$info = apache_lookup_uri('index.php?var=value');
+print_r($info);
+
+if (file_exists($info->filename)) {
+ echo 'file exists!';
+}
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+stdClass Object
+(
+ [status] => 200
+ [the_request] => GET /dir/file.php HTTP/1.1
+ [method] => GET
+ [mtime] => 0
+ [clength] => 0
+ [chunked] => 0
+ [content_type] => application/x-httpd-php
+ [no_cache] => 0
+ [no_local_copy] => 1
+ [unparsed_uri] => /dir/index.php?var=value
+ [uri] => /dir/index.php
+ [filename] => /home/htdocs/dir/index.php
+ [args] => var=value
+ [allowed] => 0
+ [sent_bodyct] => 0
+ [bytes_sent] => 0
+ [request_time] => 1074282764
+)
+file exists!
+]]>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+</refentry>
<!-- Keep this comment at the end of the file
Local variables: