Re: sending a 404 error
| From: | Michael A. Peters | Date: | Mon, 17 Sep 2001 00:31:11 +0000 |
| Subject: | Re: sending a 404 error | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67543@lists.php.net to get a copy of this message | ||
Close- this is what actually worked-
header ("HTTP/1.1 404 Not Found");
But thanks- it got me on the right track, anyway (i wasn't aware server responses were sent
from the header)
It doesn't log it in the error_log or send the 404 error page, but i have a custom error page-
so i just include() it... works beautifully, and agents like wget understand there's nothing to
grab.
On Sun, 16 Sep 2001 20:44:02 -0800
GATop <gatop@hot.ee> wrote:
*snip*
>
> MAP> I would like to replace the line
> MAP> die ("The file you wish to download does not exist");
>
> MAP> with instead an invocation of the http 404 error.
>
*snip
>
> Yes You can
>
> header ("404 Not Found");
>
> should work
>
> --
> Best regards,
> GATop mailto:gatop@hot.ee
>
--
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/