Page 1 of 1
PHP errors
Posted: Sat Jan 11, 2003 9:24 pm
by smoky989
Is there a program thta can run a PHP script and tell you where the errors are. Kind of like Java compiler? Cause everytime I have a small error it takes me forever to find it. Thanks
Posted: Sat Jan 11, 2003 10:34 pm
by oldtimer
Boy that would be nice. Not sure if there is or not. After messing with stuff you tend to know what to look for by the error.
Posted: Sat Jan 11, 2003 11:04 pm
by evilcoder
what errors are coming up? ust ask about them here, you'll usually get a fast response.
Another good idea is to know PHP back-to-front (but not inside-out) read over the manual a billion times, you'll start to know exactly what the hel errors are real quick.
Posted: Sun Jan 12, 2003 2:41 am
by volka
php -l scriptfilename.php will only check the syntax of the script. The output is pretty much like that from javac.
Consider using an IDE for php. Most of them show syntax and/or runtime errors and take you to the location in your source.
Take a look e.g. at
viewtopic.php?t=3495