Posted by GT on 12/27/06 19:29
BKDotCom wrote:
> GT wrote:
>> If I write a script like so:
>>
>> <?php
>> header("HTTP/1.x 404 Not Found");
>> ?>
>>
>> and run it through IE or FF why don't I get the browser's page not
>> found message? I can see the header on liveheaders in FF but I don't get
>> the 404 I expect in the browser.
>
> The browser doesn't create the error message, the server does.
> Usually, the default httpd error generated by apache or IIS
> You've essentially created a custom 404 error page.
>
> It's up to you to say "Page not found" or whatever.
>
> perhaps you actually want a 405 or 406?
> "Method Not Allowed" or "Not Acceptable"?
>
Thanks,
So (if I understand correctly) the reason I don't get any output would
be because I haven't set up the Apache ErrorDocument to tell the server
what to serve in the case of these errors?
--
GT
Navigation:
[Reply to this message]
|