help needed pinpointing php errors

Discussion in 'HTML / PHP / JavaScript / CSS' started by beaglelady, Oct 12, 2009.

  1. 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!
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    weird.. what is the URL to the php script.
     
  3. 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
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    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?
     
  5. I don't know about custom error. What should I do about it?
     
  6. 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!
     
  7. Bruce

    Bruce DiscountASP.NET Staff

    glad you got this resolved...
     

Share This Page