corrected my claims about header("HTTP ...") after reading the source

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@76505 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hartmut Holzgraefe 2002-04-04 10:09:30 +00:00
parent 15a6d842bb
commit 3249e2ab94

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.40 $ -->
<!-- $Revision: 1.41 $ -->
<reference id="ref.http">
<title>HTTP functions</title>
<titleabbrev>HTTP</titleabbrev>
@ -63,12 +63,11 @@ header('WWW-Authenticate: NTLM',false);
</informalexample>
<note>
<para>
If you want to set the return status like this then you have to
make sure this is the very first header you send. Remember that
<function>setcookie</function> uses <function>header</function>
internally and that the session functions might try to set a
cookie, so these might interfere with setting a return status
using <literal>header("HTTP ...")</literal>.
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
by calling <function>header</function> with a new status line
at any time unless the HTTP headers have already been sent.
</para>
</note>
<note>