I want to send a 401 Unauthorized, and a 404 not found.
I have tried these (in seperate documents):
header("HTTP/1.0 404 Not Found");
header("Status: 401 Unauthorized");
I put a single header at the top of the page
but I received a blank document in return.
What else do I have to do send error responses
in PHP?
Thanks,
Andrew
Do I need to display my own error message or something?
Andrew
Indeed. You can print out as fancy a error message as you want. Personally I
just copy-and-pasted the HTML from the Apache error pages.