Fork me on GitHub


Quickly validate PHP files

June 26, 2009 | Computers, PHP Scripting

Ever needed to quickly scan a directory full of PHP files for syntax errors? You can do this quickly on a *nix command line with:

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

3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  • Might come in handy sometime. Cheers for sharing.

    noone, August 6, 2009 6:10 pm | permalink

  • Thanks for this bit of code, it has been quite useful.

    Kevin S, March 15, 2012 4:17 pm | permalink


  1. XkiD | Quickly validate PHP files |

    […] original post here:  Quickly validate PHP files Posted in PHP | Tags: across-the, are-promoted, files-for, only-the-barest, quickly, viral, […]

    June 26, 2009 | 4:01 pm

Comments are closed