sending a 404 error
| From: | Michael A. Peters | Date: | Sun, 16 Sep 2001 17:05:35 +0000 |
| Subject: | sending a 404 error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67505@lists.php.net to get a copy of this message | ||
Is it possible to invoke the server 404 error error from php?
Where I would like to do such a thing is
http://24.5.29.77:10080/encryption/index.phps
I would like to replace the line
die ("The file you wish to download does not exist");
with instead an invocation of the http 404 error.
Theoretically a 404 error should never happen if I properly did my stuff, but it would be nice for
me to be able to detect such problems just from the http error logs...
If there's not a way to directly do it, I'll need to redirect to a 404 error page (well,
include my custom error page) and have the script make an entry into the http_error log- but a nice
one liner invocation of Apache's built in 404 error function would be nice...
--
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/