note 66254 added to function.header

From: Date: Wed, 17 May 2006 21:16:52 +0000
Subject: note 66254 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-111526@lists.php.net to get a copy of this message
PHP as CGI treats header differently. header("HTTP/1.0 404 Not Found"); returns "404 ok" When using PHP (3,4 and 5) as CGI to return a 404 you need to use: header("Status: 404 Not Found"); this returns "404 Not Found" See: http://bugs.php.net/bug.php?id=27345 ---- Server IP: 216.194.113.175 Probable Submitter: 206.132.94.6 (proxied: 1.1 PHX-CACHE1 (NetCache NetApp/5.5R6), phx-wbs-002, 1.1 PHX-CACHE1 (NetCache NetApp/5.5R6)) ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/note/edit/66254 Del: integrated -- http://master.php.net/note/delete/66254/integrated Del: useless -- http://master.php.net/note/delete/66254/useless Del: bad code -- http://master.php.net/note/delete/66254/bad+code Del: spam -- http://master.php.net/note/delete/66254/spam Del: non-english -- http://master.php.net/note/delete/66254/non-english Del: in docs -- http://master.php.net/note/delete/66254/in+docs Del: other reasons-- http://master.php.net/note/delete/66254 Reject -- http://master.php.net/note/reject/66254 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111526) next »