Return to Snippet

Revision: 11727
at February 16, 2009 17:06 by endorfin


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

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

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

Initial Title
Check PHP Syntax

Initial Tags
php

Initial Language
Bash