Fork me on GitHub

article

Quickly validate PHP files

June 26, 2009 | Computers, PHP Scripting | 2 Comments

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:

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

2 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

Continuing the Discussion

  1. XkiD | Quickly validate PHP files | blog.xkid.ro

    [...] 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

Leave a Reply

Some HTML is OK

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

or, reply to this post via trackback.