Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No input file specified.

Status
Not open for further replies.

SPYDERIX

Technical User
Joined
Jan 11, 2002
Messages
1,899
Location
CA
Hi,

I have just made myself a custom error handling system so that if there is a broken link I don't get generic 404 errors and the 404 is entered into my site.

I then tested this system out and it works, except when I purposely changed the name of one of my files (portfolio.php => portfolio1.php) to make it error, instead of seeing my custom error page I see this:

"No input file specified."

That should be giving a 404. How do I make it give a 404 and not that error for .php files?

Thanks!

relax.gif


Keep up to date with my 2003 NHL Playoffs Wallpaper
 
sleipnir214,

The error handler is processed by apache like this:

ErrorDocument 400 /error/error.php?400
ErrorDocument 401 /error/error.php?401
ErrorDocument 403 /error/error.php?403
ErrorDocument 404 /error/error.php?404
ErrorDocument 500 /error/error.php?500

This works for every file except .php files. That error.php page is simply a copy of my website and shows the correct error message based on the query string. It is everytime that a non-existant .php file is requested that I get what looks like php's version of a 404 error instead of the apache error that should be taking place.

Perhaps this is a question for the apache forum, but I posted it here b/c it's only php files that aren't causing my error handling system to output the correct error.

Thanks!

relax.gif


Keep up to date with my 2003 NHL Playoffs Wallpaper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top