Forum Moderators: coopster

Message Too Old, No Replies

Getting PHP errors on an ASP website

Google diaplays PHP errors using the site: command

         

steve

3:16 pm on May 23, 2005 (gmt 0)

10+ Year Member



I'm not sure whether to post this in the Net forum, Google forum or here, so here goes,

When I use Google's site: command I get loads of the following results returned:-

PHP Fatal error: Unable to open d:\home\******\public_html\**** ...

PHP Fatal error: Unable to open d:\home\*******\public_html\****-
directory\products\index.php in Unknown on line 0

www.******.com/****-directory/products/index.php - 1k

Google seems to have a problem with my directory script, although it does correctly return all the ASP pages.

Yahoo and MSN don't return any PHP pages

My site doesn't use PHP, everthing is done with ASP. Although my host has installed PHP on the server which is IIS.

Can anyone suggest what might be causing these results, and how to correct it?

coopster

1:05 am on May 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



From your description it seems as though PHP may not be configured correctly for your server. Have you tried a simple phpinfo.php script to see if your server will serve up a display of your php information?

steve

2:25 pm on May 24, 2005 (gmt 0)

10+ Year Member



Have you tried a simple phpinfo.php script

I hadn't, I've never used PHP. But I did a quick Google found out how to do it.

Its telling me I have php version 4.3.10 and lots of other info.

Can I assume that because I can see this page that PHP is correctly set up?

Timotheos

7:02 pm on May 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It shows that php is working on your server. Whether it's set up correctly for you scripts is another story.

Is this a directory script provided by your host? or is it custom?

If the server is giving proper 404 errors for the address then it seems that Google will clean up eventually. If you want to speed it up then make sure a 410 error is sent for that page.

Tim

steve

10:41 am on May 27, 2005 (gmt 0)

10+ Year Member



Is this a directory script provided by your host? or is it custom?

It's a free ASP script, which I modified to suit my needs.

What I can't figure out is how Google gets PHP errors from an ASP based directory.

If I enter the Urls Google is using (which don't exist) I get my 404 page, so I hope if I do nothing eventually the problem will right itself.

Timotheos

3:20 pm on May 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a PHP version of this free ASP script?