PHP Lint Checker

Description Bash

This script will check all PHP files beneath the current dir for syntax errors, and only output the errors it finds.

The Code Download

  1. #!/bin/bash
  2. find . -iname "*.php" -depth -exec php -l {} \; | grep -v "No syntax errors detected"

Credits

Added by JC on 13th July 2010

Comments

There are no comments about this snippet.

Post Comment Github Markdown Supported

You must be logged in to post a comment.

Login here to post a comment