cvs: phpdoc /kr/functions http.xml
| From: | Jaemin Byon | Date: | Sat, 24 Feb 2001 03:12:08 +0000 |
| Subject: | cvs: phpdoc /kr/functions http.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969334428@lists.php.net to get a copy of this message | ||
noribsd Fri Feb 23 19:12:08 2001 EDT
Modified files:
/phpdoc/kr/functions http.xml
Log:
Index: phpdoc/kr/functions/http.xml
diff -u phpdoc/kr/functions/http.xml:1.2 phpdoc/kr/functions/http.xml:1.3
--- phpdoc/kr/functions/http.xml:1.2 Wed Jan 10 06:53:26 2001
+++ phpdoc/kr/functions/http.xml Fri Feb 23 19:12:08 2001
@@ -1,4 +1,4 @@
-<reference id="ref.http">
+ <reference id="ref.http">
<title>HTTP functions</title>
<titleabbrev>HTTP</titleabbrev>
@@ -27,13 +27,6 @@
<acronym>HTML</acronym> file to send raw <acronym>HTTP</acronym>
header strings. See the <ulink url="&spec.http1.1;">HTTP 1.1
Specification</ulink> for more information on raw http headers.
- <emphasis>Note:</emphasis> Remember that the
- <function>Header</function> function must be called before any
- actual output is sent either by normal HTML tags or from PHP. It
- is a very common error to read code with
- <function>include</function> or with auto_prepend and have spaces
- or empty lines in this code that force output before
- <function>header</function> is called.
</para>
<para>
There are two special-case header calls. The first is the
@@ -79,6 +72,25 @@
</programlisting>
</informalexample>
</para>
+ <para>
+ Remember that the <function>header</function> function must be
+ called before any actual output is sent, either by normal HTML
+ tags blank lines in a file, or from PHP. It is a very common
+ error to read code with <function>include</function>, or
+ <function>require</function>, functions, or another file access
+ function, and have spaces or empty lines that will output before
+ <function>header</function> is called. The same problem exists
+ when using a single PHP/HTML file.
+ <informalexample>
+ <programlisting role="php">
+<?php require("user_logging.inc") ?>
+
+
+<?php header ("Content-Type: audio/x-pn-realaudio"); ?>
+// Broken, Note the blank lines above
+ </programlisting>
+ </informalexample>
+ </para>
<para>
See also <function>headers_sent</function>
</para>