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...... Link to comment https://forums.phpfreaks.com/topic/93144-headers/ 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> Link to comment https://forums.phpfreaks.com/topic/93144-headers/#findComment-477175 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"; Link to comment https://forums.phpfreaks.com/topic/93144-headers/#findComment-477177 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 Link to comment https://forums.phpfreaks.com/topic/93144-headers/#findComment-477810 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.