PHP error checking

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

PHP error checking

Post by impulse() »

I'm using a BSD system at the moment which isn't giving me any clues as to where any errors are in the code.

This is my output at the moment

"Errors parsing x.php"

I've tried setting "error_reporting(E_ALL);". but that gives the same output.

I'm using Vim to edit with.

Regards,
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

I know nothing about BSD but in general...

Have you also set:

Code: Select all

ini_set('display_errors', TRUE);
If you are getting true parser errors (white screen when displaying HTML) then this will not work either. The only solution I have found to this (other than my Eclipse IDE highlighting it) is to comment out "suspected" parts until I get something working. Then gradually uncomment out bits until it stops working, then investigating this code more closely.

Other soloutions include looking in the logs, or using "php -f filename.php" on the command line if available.
Post Reply