avenger         Wed Nov  6 11:19:55 2002 EDT

  Modified files:              
    /phpdoc/en/reference/http/functions headers-sent.xml 
  Log:
  finished
  
  
Index: phpdoc/en/reference/http/functions/headers-sent.xml
diff -u phpdoc/en/reference/http/functions/headers-sent.xml:1.4 
phpdoc/en/reference/http/functions/headers-sent.xml:1.5
--- phpdoc/en/reference/http/functions/headers-sent.xml:1.4     Tue Sep 17 08:44:11 
2002
+++ phpdoc/en/reference/http/functions/headers-sent.xml Wed Nov  6 11:19:55 2002
@@ -1,39 +1,35 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/http.xml, last change in rev 1.7 -->
   <refentry id="function.headers-sent">
    <refnamediv>
     <refname>headers_sent</refname>
-    <refpurpose>Returns &true; if headers have been sent</refpurpose>
+    <refpurpose>测试头部信息是否已经被发送,如果是,返回 &true;</refpurpose>
    </refnamediv>
    <refsect1>
-    <title>Description</title>
+    <title>描述</title>
      <methodsynopsis>
       <type>bool</type><methodname>headers_sent</methodname>      
       <methodparam><type>string</type><parameter>&amp;file</parameter></methodparam>
       <methodparam 
choice="opt"><type>int</type><parameter>&amp;line</parameter></methodparam>
      </methodsynopsis>
     <para>
-     This function returns &true; if the HTTP headers have already been
-     sent, &false; otherwise. You can't add any more header lines using
-                the <function>header</function> function once the header block has
-                already been sent. Using this function you can at least prevent
-                getting the "Duplicate headers ..." error messages.
+     这个函数测试脚本中头部信息是否已经发送,如果是则返回 &true; 否则返回 
+&false;。一旦头部信息已经被发送,你将不能再使用 <function>header</function>
+     函数来发送其它的头部信息。使用此函数可以使你最大限度的避免类似 "Duplicate 
+headers ..." 的错误信息。
     </para>
     <para>
-     The function will return the php source file and line number where
-     output started in the optional <parameter>file</parameter> and
-     <parameter>line</parameter> parameters if these are given.
+     如果可先参数 <parameter>file</parameter>
+     及 <parameter>line</parameter>
+     被指定,则函数会返回指定文件指定行数起头部信息的发送情况。
     </para>
     <note>
      <simpara>
-      <parameter>file</parameter> and <parameter>line</parameter> where
-      added for PHP 4.3.0.
+      <parameter>file</parameter> and <parameter>line</parameter>
+      参数在 PHP 4.3.0 版本中被加入。
      </simpara>
     </note>
     <para>
-     See also <function>header</function> for a more detailed discussion
-                of the matters involved.
+     更多细节的讨论参见 <function>header</function>。
     </para>
    </refsect1>
   </refentry>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to