avenger Wed Nov 6 11:21:42 2002 EDT
Modified files:
/phpdoc/en/reference/http reference.xml
/phpdoc/en/reference/http/functions header.xml
Log:
finished
Index: phpdoc/en/reference/http/reference.xml
diff -u phpdoc/en/reference/http/reference.xml:1.4
phpdoc/en/reference/http/reference.xml:1.5
--- phpdoc/en/reference/http/reference.xml:1.4 Fri Aug 9 06:26:02 2002
+++ phpdoc/en/reference/http/reference.xml Wed Nov 6 11:21:38 2002
@@ -1,15 +1,14 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<reference id="ref.http">
- <title>HTTP functions</title>
+ <title>HTTP ��غ���</title>
<titleabbrev>HTTP</titleabbrev>
<partintro>
<section id="http.intro">
&reftitle.intro;
<para>
- These functions let you manipulate the output sent back to the
- remote browser right down to the HTTP protocol level.
+ ��Щ���������������� HTTP ��Э����ͻ������������ͷ����Ϣ��
</para>
</section>
Index: phpdoc/en/reference/http/functions/header.xml
diff -u phpdoc/en/reference/http/functions/header.xml:1.6
phpdoc/en/reference/http/functions/header.xml:1.7
--- phpdoc/en/reference/http/functions/header.xml:1.6 Thu Oct 17 16:33:03 2002
+++ phpdoc/en/reference/http/functions/header.xml Wed Nov 6 11:21:40 2002
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<!-- splitted from ./en/functions/http.xml, last change in rev 1.2 -->
<refentry id="function.header">
<refnamediv>
<refname>header</refname>
- <refpurpose>Send a raw HTTP header</refpurpose>
+ <refpurpose>�����������һ�� HTTP ͷ����Ϣ</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>����</title>
<methodsynopsis>
<type>int</type><methodname>header</methodname>
<methodparam><type>string</type><parameter>string</parameter></methodparam>
@@ -15,17 +15,14 @@
<methodparam
choice="opt"><type>int</type><parameter>http_reponse_code</parameter></methodparam>
</methodsynopsis>
<para>
- <function>header</function> is used to send raw
- <acronym>HTTP</acronym> headers. See the <ulink
- url="&spec.http1.1;">HTTP/1.1 specification</ulink> for more
- information on <acronym>HTTP</acronym> headers.
+ <function>header</function> ������������һ�� <acronym>HTTP</acronym>
+ ͷ����Ϣ���ͻ��˵���������й� <acronym>HTTP</acronym>
+ͷ����Ϣ�ĸ������ݲμ��ٷ��ĵ�
+ <ulink url="&spec.http1.1;">HTTP/1.1 specification</ulink>��
</para>
<para>
- The optional <parameter>replace</parameter> parameter indicates
- whether the header should replace a previous similar header, or
- add a second header of the same type. By default it will replace,
- but if you pass in &false; as the second argument you can force
- multiple headers of the same type. For example:
+ ��ѡ���� <parameter>replace</parameter>
+
+������ʾ�������������Ƶ�ͷ����Ϣʱ�����滻ǰһ����ͬ��ͷ����Ϣ��������һ����ͬ��ͷ����Ϣ��Ĭ��Ϊ�滻������㽫����Ϊ
+ &false; ����Զ�η�����ͬ��ͷ����Ϣ������:
<informalexample>
<programlisting role="php">
<![CDATA[
@@ -38,15 +35,12 @@
</informalexample>
</para>
<para>
- The second optional <parameter>http_response_code</parameter> force the
- HTTP response code to the specified value. (This parameter is available
- in PHP 4.3.0 and higher.)
+ �ڶ�����ѡ���� <parameter>http_response_code</parameter> ��ʾ HTTP
+ ��ͷ����Ϣ�Ĵ��롣(�˲�����PHP 4.3.0 �����롣)
</para>
<para>
- There are two special-case header calls. The first is a header
- that starts with the string "<literal>HTTP/</literal>" (case is not
- significant), which will be used to figure out the HTTP status
- code to send. For example, if you have configured Apache to
+ ͷ����Ϣ�ĸ�ʽ��������ʽ��һ����������ַ� ��<literal>HTTP/</literal>��
+(�����ִ�Сд)��ͷ�ģ�which will be used to figure out the HTTP status
+ code to send������,�����if you have configured Apache to
use a PHP script to handle requests for missing files (using
the <literal>ErrorDocument</literal> directive), you may want to
make sure that your script generates the proper status code.
@@ -61,6 +55,7 @@
</informalexample>
<note>
<para>
+ HTTP ͷ����Ϣ�������ȱ����͵��ͻ��ˣ�
The HTTP status header line will always be the first sent
to the client, regardless of the actual <function>header</function>
call beeing the first or not. The status may be overridden
@@ -70,9 +65,8 @@
</note>
<note>
<para>
- In PHP 3, this only works when PHP is compiled as an Apache
- module. You can achieve the same effect using the
- <literal>Status</literal> header.
+ �� PHP 3 �У��˺���ֻ�� PHP �� Apache ��ģ�黯���е�ʱ����Ч�������ʹ��
+<literal>Status</literal>
+ ���ﵽ��ͬ��Ч����
<informalexample>
<programlisting role="php">
<![CDATA[
@@ -86,7 +80,7 @@
</note>
</para>
<para>
- The second special case is the "Location:" header. Not only does
+ �ڶ�������������� "Location:" ��ͷ����Ϣ��Not only does
it send this header back to the browser, but it also returns a
<literal>REDIRECT</literal> (302) status code to the browser unless
some <literal>3xx</literal> status code has already been set.
@@ -104,13 +98,11 @@
</para>
<note>
<para>
- HTTP/1.1 requires an absolute <acronym>URI</acronym> as argument to
+ HTTP/1.1 ����Ҫһ�����Ե�ַ�� <acronym>URI</acronym> ��Ϊ
<ulink url="&spec.http1.1;-sec14.html#sec14.30">Location:</ulink>
- including the scheme, hostname and absolute path, but
- some clients accept relative URIs. You can usually use
- <literal>$_SERVER['HTTP_HOST']</literal>,
<literal>$_SERVER['PHP_SELF']</literal>
- and <function>dirname</function> to make an absolute URI from a
- relative one yourself:
+ �IJ���, ����һЩ�ͻ���֧�������·������ͨ������ʹ��
+
+<literal>$_SERVER['HTTP_HOST']</literal>��<literal>$_SERVER['PHP_SELF']</literal>
+ �� <function>dirname</function> �������Լ���ȡ����Ҫ�ľ���·��:
<informalexample>
<programlisting>
<![CDATA[
@@ -125,11 +117,8 @@
</para>
</note>
<para>
- PHP scripts often generate dynamic content that must not be cached
- by the client browser or any proxy caches between the server and the
- client browser. Many proxies and clients can be forced to disable
- caching with
- <informalexample>
+ PHP
+�ű�ͨ���Ƕ�̬�ı�ġ�����Щ�ͻ��˻�һЩ�������������һЩ����������ݸ��������������������µĽű��Ͳ��ܱ��ͻ��˼�ʱ�ķ��֣������ͨ������һЩ�������������е�ͷ����Ϣ����ֹ���ǻ��������ҳ��
+ <informalexample>
<programlisting role="php">
<![CDATA[
<?php
@@ -145,16 +134,15 @@
</informalexample>
<note>
<para>
- You may find that your pages aren't cached even if you don't
- output all of the headers above. There are a number of options
+
+����ܻᷢ�ּ�ʹ��û�а��ϱߵĴ���ȫ����������ҳҲû�б�����������������ΪһЩ�û������ǵ������������There
+ are a number of options
that users may be able to set for their browser that change its
default caching behavior. By sending the headers above, you should
override any settings that may otherwise cause the output of your
script to be cached.
</para>
<para>
- Additionally, <function>session_cache_limiter</function> and
- the <literal>session.cache_limiter</literal> configuration
+ ���⣬<function>session_cache_limiter</function> ��
+ <literal>session.cache_limiter</literal> configuration
setting can be used to automatically generate the correct
caching-related headers when sessions are being used.
</para>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php