/ 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.
Expand |
Embed | Plain Text
find . -type f -name "*.php" -exec php -l {} \; | grep -v 'No syntax errors'
You need to login to post a comment.
