Re: Debugging PHP

From: Date: Wed, 23 Oct 2002 14:58:17 +0000
Subject: Re: Debugging PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121108@lists.php.net to get a copy of this message
As long as you have Error reporting enabled (see Matt Schroebel's response), PHP squirts the error into your html file. You may need to View Source to see it if the script stops dead at the error and leaves the document in an unrenderable form. Hope this helps -- Richard Allsebrook Applications and Web Development "Glen Lee Edwards" <glen@fcwm.org> wrote in message news:200210230912.37278.glen@fcwm.org... > New to PHP: How do I debug a PHP script - where do I look for the error > messages? When a script dies due to a syntax error, I've checked the > apache error log, but it doesn't show anything. I've been able to > debug the scripts by commenting out new lines I've written in until it > works, then one by one uncommenting them until it doesn't. It would > help if I could find a place where it says which line killed the > script. > > Regards, > > Glen

« previous php.general (#121108) next »