note 70236 deleted from function.header by tularis

From: Date: Fri, 20 Apr 2007 14:19:30 +0000
Subject: note 70236 deleted from function.header by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125634@lists.php.net to get a copy of this message
Note Submitter: Olivier Mengué ---- 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

« previous php.notes (#125634) next »