DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Check The Syntax Of A Bunch Of PHP Files All At Once

05.17.2006
| 11853 views |
  • submit to reddit
        Will find all files ending with 'php' and execute the syntax check of php for every found file. Useful if you quickly want to see which php file contains a parse error.

find ./ -type f -name \*.php -exec php -l {} \;