1

Tip #535   Check PHP Syntax

Here's a simple one liner you can use to syntax check all php files in your working directory.
find . -type f -name "*.php" -exec php -l {} \; | grep -v 'No syntax errors'

 
  • TAGS: