Here’s a quickie – make sure every PHP file in your project parses correctly.

find . -name ‘*.php’ -exec php -l {} \; | grep “Errors parsing”

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
 

One Response to Quickly Check every PHP file in your project for errors

  1. Matt says:

    If you really want to terrify yourself, you can also script the Zend Code Analyzer (from the Zend IDE) to run through your entire project and dump to file.

    You can invoke it from the command line – wrap it in a script to trawl your entire site, and weep at the results.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>