note 106281 deleted from function.header by danbrown
| From: | danbrown@php.net | Date: | Mon, 24 Oct 2011 15:58:35 +0000 |
| Subject: | note 106281 deleted from function.header by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184096@lists.php.net to get a copy of this message | ||
Note Submitter: contact at joomstuff dot com
----
I found this solution on stackoverflow.com and modify, here is (i think universal and very simple)
code for 404:
<?php
header($_SERVER['SERVER_PROTOCOL']." 404 Not Found");
exit("<h1>Not Found</h1>
The requested URL " . $_SERVER["REQUEST_URI"] . " was not found on this
server.");
?>