svn: /phpdoc/en/trunk/reference/network/functions/ header.xml
| From: | Mark Skilbeck | Date: | Tue, 21 Sep 2010 15:49:01 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/network/functions/ header.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7138@lists.php.net to get a copy of this message | ||
markskilbeck Tue, 21 Sep 2010 15:49:01 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=303643
Log:
#52485 FastCGI 404 header
Bug: http://bugs.php.net/52485 (Open) provided example
doesn't work in all circumstances
Changed paths:
U phpdoc/en/trunk/reference/network/functions/header.xml
Modified: phpdoc/en/trunk/reference/network/functions/header.xml
===================================================================
--- phpdoc/en/trunk/reference/network/functions/header.xml 2010-09-21 15:42:01 UTC (rev 303642)
+++ phpdoc/en/trunk/reference/network/functions/header.xml 2010-09-21 15:49:01 UTC (rev 303643)
@@ -73,6 +73,17 @@
</informalexample>
</para>
<para>
+ For FastCGI you must use the following for a 404 response:
+ <informalexample>
+ <programlisting role="php">
+<![CDATA[
+<?php
+header("Status: 404 Not Found");
+?>
+]]>
+ </programlisting>
+ </informalexample>
+ <para>
The second special case is the "Location:" header. Not only does
it send this header back to the browser, but it also returns a
<literal>REDIRECT</literal> (302) status code to the browser