Finding syntax errors in your PHP Project files

Till posted this lit­tle snip­pet;
It’s so use­ful I just had to share it :)

find . \( -name "*.php" -o -name "*.phtml" \) -exec php -l {} \;

Just go to your project direc­tory and fire it off, it will help you find those pesky unmatched {}

Tags: ,

1 Response to "Finding syntax errors in your PHP Project files"

Leave a Comment

*

Get Adobe Flash playerPlugin by wpburn.com wordpress themes