Posted By

endorfin on 02/16/09


Tagged

php


Versions (?)

Check PHP Syntax


 / Published in: Bash
 

URL: http://www.shell-fu.org/lister.php?id=535

Here's a simple one liner you can use to syntax check all php files in your working directory.

  1. find . -type f -name "*.php" -exec php -l {} \; | grep -v 'No syntax errors'

Report this snippet  

You need to login to post a comment.