note 112142 added to function.http-response-code

From: Date: Thu, 09 May 2013 16:43:57 +0000
Subject: note 112142 added to function.http-response-code
Groups: php.notes 
Request: Send a blank email to php-notes+get-194751@lists.php.net to get a copy of this message
The note above from "Anonymous" is wrong. I'm running this behind the AWS Elastic Loadbalancer and trying the header(':'.$error_code...) method mentioned above is treated as invalid HTTP. The documentation for the header() function has the right way to implement this if you're still on < php 5.4: <?php header("HTTP/1.0 404 Not Found"); ?> ---- Server IP: 69.147.83.199 Probable Submitter: 207.7.156.100 ---- Manual Page -- http://php.net/manual/en/function.http-response-code.php Edit -- https://master.php.net/note/edit/112142 Del: integrated -- https://master.php.net/note/delete/112142/integrated Del: useless -- https://master.php.net/note/delete/112142/useless Del: bad code -- https://master.php.net/note/delete/112142/bad+code Del: spam -- https://master.php.net/note/delete/112142/spam Del: non-english -- https://master.php.net/note/delete/112142/non-english Del: in docs -- https://master.php.net/note/delete/112142/in+docs Del: other reasons-- https://master.php.net/note/delete/112142 Reject -- https://master.php.net/note/reject/112142 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194751) next »