note 92907 deleted from function.header by danbrown

From: Date: Fri, 14 Aug 2009 04:22:44 +0000
Subject: note 92907 deleted from function.header by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159468@lists.php.net to get a copy of this message
Note Submitter: mungo ---- Just a warning on the note below by "andre at luyer dot nl". The line... <? header("Status: 301"); ?> Will not actually set the response code, there's no such header field. The reponse code needs to be part of the status line at the top of the headers, not set as an extra header field. Use the 3rd argument of header() to set the response code instead i.e... <? header('Location: http://www.example.com', true, 301); ?>

« previous php.notes (#159468) next »