Created
March 11, 2011 08:04
-
-
Save Fake51/865603 to your computer and use it in GitHub Desktop.
Syntax check all .php files in folder and subfolder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -iname '*.php' -exec php -l '{}' \; | grep '^No syntax errors' -v | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finds all files ending with .php and checks them for syntax errors - only displays files with errors