note 29354 added to function.header

From: Date: Tue, 11 Feb 2003 04:23:41 +0000
Subject: note 29354 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-43766@lists.php.net to get a copy of this message
If you're looking to send back a header with a different status code, then the proper syntax is: header("Location: HTTP/1.0 404"); The documentation is wrong. It says to do: header("HTTP/1.0 404 Not Found"); THIS WILL NOT WORK! I tested it in both IE and Netscape and that header is never picked up by the browser. -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+29354 http://master.php.net/manage/user-notes.php?action=delete+29354 http://master.php.net/manage/user-notes.php?action=reject+29354

« previous php.notes (#43766) next »