From 3249e2ab9405f3917581223c87024d1da8bce9b8 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Thu, 4 Apr 2002 10:09:30 +0000 Subject: [PATCH] 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 --- functions/http.xml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/functions/http.xml b/functions/http.xml index 57b735cc7a..33b04635db 100644 --- a/functions/http.xml +++ b/functions/http.xml @@ -1,5 +1,5 @@ - + HTTP functions HTTP @@ -63,12 +63,11 @@ header('WWW-Authenticate: NTLM',false); - 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 - setcookie uses header - internally and that the session functions might try to set a - cookie, so these might interfere with setting a return status - using header("HTTP ..."). + The HTTP status header line will always be the first sent + to the client, regardless of the actual header + call beeing the first or not. The status may be overridden + by calling header with a new status line + at any time unless the HTTP headers have already been sent.