kranthi117 Posted February 26, 2008 Share Posted February 26, 2008 when i use header('HTTP/1.0 404 Not Found'); the browser shows an response code of 404 (when seen with FF addon live HTTP headers) but the is no output (like 404-Not Found.....) plz tell me how to get that output...... Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted February 26, 2008 Share Posted February 26, 2008 <?php header('HTTP/1.0 404 Not Found'); ?><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL <?php echo $_SERVER['SCRIPT_NAME'];?> was not found on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html> Quote Link to comment Share on other sites More sharing options...
freenity Posted February 26, 2008 Share Posted February 26, 2008 or just header('HTTP/1.0 404 Not Found'); echo "404 Not Found"; Quote Link to comment Share on other sites More sharing options...
kranthi117 Posted February 27, 2008 Author Share Posted February 27, 2008 well if that is the only solution.... tnkz for the solution Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.