mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
15a6d842bb
commit
3249e2ab94
1 changed files with 6 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue