squiblo Posted July 24, 2009 Share Posted July 24, 2009 my domain is squiblo.com if i type into the url squiblo.com/kjbdvnbjf.php (basically something that does not exist) it comes up with that page saying "No input file specified" how can i change this message or link it to one of my other pages with a PHP script and where would i put the script? Link to comment https://forums.phpfreaks.com/topic/167300-no-input-file-specified/ Share on other sites More sharing options...
vineld Posted July 24, 2009 Share Posted July 24, 2009 You may have the error document in your main html folder called 404.html, 404.shtml or something like that. Otherwise you need to specify ErrorDocument in .htaccess in order to point to another target file. You might have the option available in your control panel as well. If you have dynamic content you may wish to redirect to the 404 document directly in your code as well in certain situations. If so, don't forget to send the 404 header first. Link to comment https://forums.phpfreaks.com/topic/167300-no-input-file-specified/#findComment-882124 Share on other sites More sharing options...
mmarif4u Posted July 24, 2009 Share Posted July 24, 2009 I write a tutorial about this some time ago, hope it should help. http://anl4u-pl.blogspot.com/2008/12/404-error-customize-it-for-your-own.html Link to comment https://forums.phpfreaks.com/topic/167300-no-input-file-specified/#findComment-882131 Share on other sites More sharing options...
The Eagle Posted July 24, 2009 Share Posted July 24, 2009 Make a .htaccess file and then put this into it ErrorDocument 404 errorpage.html Then create an errorpage.html (or whatever extension) and put content in it such as, <!--- Quick HTML Example.. !---> <HTML> <TITLE>Page Not Found</TITLE> <HEAD> </HEAD> <BODY> <H1>This page has not been found!</H1> <BR /><BR /> Please <a href="/">return to main page</a>! </BODY> </HTML> Good luck! Link to comment https://forums.phpfreaks.com/topic/167300-no-input-file-specified/#findComment-882135 Share on other sites More sharing options...
ldougherty Posted July 24, 2009 Share Posted July 24, 2009 Specifying a custom 404 will not do the trick, the reason you get this message is because PHP is trying to interpret the file even though it doesn't exist. Check this article, should be a good reference. http://jenseng.com/archives/000035.html Link to comment https://forums.phpfreaks.com/topic/167300-no-input-file-specified/#findComment-882139 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.