USing PHP header() function to send 404 error in IE [duplicate]
Possible Duplicate:
HTTP 404 - File not found Internet Explorer V6
I was testing if it's possible to send a 404 error with php header function:
header('HTTP/1.0 404 Not Found');
echo "test";
die();
I sniffed the request and in both firefox and IE the HTTP status code is 404, but the difference is that Firefox show the echo "test", but IE doesn't, it opens the IE custom 404 page. I also tried sending the echo before the header(), and still FF opens fine, IE shows IE's 404.
Is there a way to send a custom 404 error page with header() function in IE like it's possible in Firefox?
You'll have to output more data due to IE feature. Try to ouput more than 600 characters
精彩评论