note 70236 added to function.header

From: Date: Sun, 08 Oct 2006 00:13:52 +0000
Subject: note 70236 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-118196@lists.php.net to get a copy of this message
If this doesn't work: <?php header("HTTP/1.0 404 Not Found"); ?> You should set option cgi.rfc2616_headers in php.ini. If you can't, use this: <?php function header_status($status) { // 'cgi', 'cgi-fcgi' if (substr(php_sapi_name(), 0, 3) == 'cgi') header('Status: '.$status, TRUE); else header($_SERVER['SERVER_PROTOCOL'].' '.$status); } header_status('404 Not Found'); ?> See also http://bugs.php.net/bug.php?id=27345 ---- Server IP: 195.221.21.36 Probable Submitter: 81.57.157.99 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/70236 Del: integrated -- https://master.php.net/note/delete/70236/integrated Del: useless -- https://master.php.net/note/delete/70236/useless Del: bad code -- https://master.php.net/note/delete/70236/bad+code Del: spam -- https://master.php.net/note/delete/70236/spam Del: non-english -- https://master.php.net/note/delete/70236/non-english Del: in docs -- https://master.php.net/note/delete/70236/in+docs Del: other reasons-- https://master.php.net/note/delete/70236 Reject -- https://master.php.net/note/reject/70236 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118196) next »