DiscountASP.NET Forums

Go Back   DiscountASP.NET Forums > Site Programming, Development and Design > PHP

PHP Older perl/CGI questions are here as well.

Reply
 
Thread Tools Search this Thread
Old 10-12-2009, 12:06 PM   #1
beaglelady
 
Join Date: Oct 2009
Posts: 4
help needed pinpointing php errors

Hello,

I have just started learning php, but I have lots of experience in other scripting languages such as vbscript.

The problem I'm having is that very often when I run a php script it says "the system cannot find the file specified." I know the file is there, so I assume I have an error. It's very frustrating! How can I pinpoint what and where the error is?
Thanks very much!
beaglelady is offline   Reply With Quote
Old 10-13-2009, 10:26 AM   #2
bruce
DiscountASP.NET Staff
 
Join Date: Jan 2003
Posts: 5,673
weird.. what is the URL to the php script.
__________________
Bruce

DiscountASP.NET
bruce is offline   Reply With Quote
Old 10-14-2009, 06:33 AM   #3
beaglelady
 
Join Date: Oct 2009
Posts: 4
help needed pinpointing php errors

Hi,

Thanks for your response.

Here is the url of a script that is good:
http://www.beaglelady.com/testplus/demobad.php


Here is the url of a script with a bug (calls function that doesn't exist):
http://www.beaglelady.com/testplus/demobad.php

If there is any error at all, no matter what it is, I always get the response "The server cannot find the file specified"

Is php supposed to give you some kind of a clue as to what/where the error may be?

Thanks again
beaglelady is offline   Reply With Quote
Old 10-14-2009, 11:34 AM   #4
bruce
DiscountASP.NET Staff
 
Join Date: Jan 2003
Posts: 5,673
php should display the error to browser under normal circumstance.

Do you happen to have custom error enabled? Is the custom error pointing to the correct path?
__________________
Bruce

DiscountASP.NET
bruce is offline   Reply With Quote
Old 10-14-2009, 12:15 PM   #5
beaglelady
 
Join Date: Oct 2009
Posts: 4
I don't know about custom error. What should I do about it?
beaglelady is offline   Reply With Quote
Old 10-14-2009, 12:37 PM   #6
beaglelady
 
Join Date: Oct 2009
Posts: 4
Smile help needed pinpointing php errors

Bruce,

"custom error" was indeed the problem. I checked my control panel and blanked out the custom error fields and now I can see my php errors. (I don't remember putting anything into those fields so it must have been long ago)

Thanks very much for your help!
beaglelady is offline   Reply With Quote
Old 10-15-2009, 09:55 AM   #7
bruce
DiscountASP.NET Staff
 
Join Date: Jan 2003
Posts: 5,673
glad you got this resolved...
__________________
Bruce

DiscountASP.NET
bruce is offline   Reply With Quote
Reply

Bookmarks

Tags
php

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code behind needed? renevazquez General troubleshooting 1 03-07-2009 05:47 PM
URL Remapping - help needed pishposh ASP.NET 3.5 4 08-15-2008 08:54 AM
WSE 3.0 & IIS 7.0 - help needed! hip2bsquare ASP.NET WebServices 1 08-06-2008 04:16 AM
needed .dll for WebMatrix/SQL bosstep WebMatrix 0 03-17-2003 01:58 AM


All times are GMT -8. The time now is 04:39 AM.


vBulletin ©Jelsoft Enterprises Ltd.