note 743 modified in ref.http by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 23:48:08 +0000 |
| Subject: | note 743 modified in ref.http by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25534@lists.php.net to get a copy of this message | ||
The way to change the HTTP Status using PHP3 is using the header() function:
<?php
header("Status: 404 Not Found")
?>
<H1>Error: 404 Not Found</H1>
The Page you requested was not found
Note that the header() function must be called before any actual output is sent either by normal
HTML tags or from PHP.
--was--
The way to change the HTTP Status using PHP3 is using the <b>header()</b> function:
<PRE>
<?php
header("Status: 404 Not Found")
?>
<H1>Error: 404 Not Found</H1>
The Page you requested was not found
</PRE>
Note that the header() function must be called before any actual output is sent either by normal
HTML tags or from PHP.
http://www.php.net/manual/en/ref.http.php