2 replies [Last post]
LisaJill
Offline
Regular
Last seen: 16 years 29 weeks ago
Joined: 2003-08-06
Posts: 43
Points: 0

Hey everyone, I need your help again..

I recently discovered that if people attempt to go to a page that doesn't exist on my server, if it has a .php extension, they simply get "Input file not specified".

I contacted tech support, and got this response:

Quote:
After researching your issue, I have found why you cannot get a 404 error page on a .php. This is because PHP pages do not run on Apache like a .html page. They are run from CGI, which means they do not have the same functionality as .html pages. Unfortunately, there is no work around for this issue.

I have getting your error PHP page when access a non-existent .html page.

This is the ticket that I sent to my host (www.verio.com)

Quote:
I have in my .htaccess in my root directory this line:

ErrorDocument 404 http://www.lisa-jill.com/404.php

However, if you go to a .php page that doesn't exist, such as:

http://www.lisa-jill.com/archives/2004/01/photoblog_tutorial.php

you only get this error:

No input file specified.

Can you tell me how I would send those errors to the 404 page? My directive appears to work in cases where it is a .htm type file not found, just not anything with a .php

does anyone have any comments on how I can get around this? I find thi to be extremely offputting. Is this specific to my host, or is this a common issue? workarounds?

Thank you.

Tags:
Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 2 days 1 hour ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

404 on php pages

Hi LisaJill,
I did a quick search and found this: http://bugs.php.net/bug.php?id=24958

One temporary way around it would be to create a .html file that redirects to the php file.

LisaJill
Offline
Regular
Last seen: 16 years 29 weeks ago
Joined: 2003-08-06
Posts: 43
Points: 0

404 on php pages

Thank you, Tony.

Rather than work around this, due to the complete lack of assistance from my host in what I view as a critical, and unfortunately common issue - that I'm su re would not be specific to me, I am changing hosts.

*sighs* Was with them for 10 years, I hate having to ditch them, but sometimes change must happen.

Thank you for your assistance with this. =)