Skip to content

Instantly share code, notes, and snippets.

@Fake51
Created March 11, 2011 08:04
Show Gist options
  • Save Fake51/865603 to your computer and use it in GitHub Desktop.
Save Fake51/865603 to your computer and use it in GitHub Desktop.
Syntax check all .php files in folder and subfolder
find . -iname '*.php' -exec php -l '{}' \; | grep '^No syntax errors' -v | less
@Fake51
Copy link
Author

Fake51 commented Mar 11, 2011

Finds all files ending with .php and checks them for syntax errors - only displays files with errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment