404 Responses with FastCGI
| From: | Breck Yunits | Date: | Fri, 12 Aug 2011 18:04:02 +0000 |
| Subject: | 404 Responses with FastCGI | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969383063@lists.php.net to get a copy of this message | ||
On the "header" doc page
(http://php.net/manual/en/function.header.php), I saw this:
For FastCGI you must use the following for a 404 response:
<?php
header("Status: 404 Not Found");
?>
Why is this the case? I tested Nginx+FastCGI+5.3 with just:
<?php
header("HTTP/1.0 404 Not Found");
?>
And it seemed to work fine. Could anyone explain this? I think it
might be helpful to clarify that page a bit.
Cheers,
Breck