madhouse Posted October 8, 2005 Report Share Posted October 8, 2005 any one no howe to get the function header("HTTP/1.0 404 Not Found"); to work? Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted October 8, 2005 Report Share Posted October 8, 2005 Moving this to the Programming Forum. Thanks. BTW: Dont understand what you mean? probably has to be used within a if and else statement. if this page is true, go, if false, 404 function ? Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
madhouse Posted October 8, 2005 Author Report Share Posted October 8, 2005 i mean when i try to use the function it does not work.all i get is a blank page when i should get a 404 document. Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted October 8, 2005 Report Share Posted October 8, 2005 Probably because the Error Setting is not configured in Apache. You probably have to set it up. It default setting is Off. Can't you just use the easy way, 404.shtml and so on file? Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
madhouse Posted October 9, 2005 Author Report Share Posted October 9, 2005 how would i config apache error settings? Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted October 9, 2005 Report Share Posted October 9, 2005 Edit the httpd.conf file and turn the error codes on. Also must have the Error Files, or create yours. All that might not be necessary. Try creating a 404.shtml file in W:/www and test that function again.. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
madhouse Posted October 9, 2005 Author Report Share Posted October 9, 2005 tryed craeting a 404.shtml and it does not load when i load a page which is not there. Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted October 9, 2005 Report Share Posted October 9, 2005 Thats funny.. it does here.. tired it once.. i will give it a test as soon as i can Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
elyk Posted October 10, 2005 Report Share Posted October 10, 2005 THere is also a way using .htaccess that you can set the error page. Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted October 10, 2005 Report Share Posted October 10, 2005 Thats true, rather than editing the httpd.conf file you can put it in the .htaccess file. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team 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.