Snippets v2

Languages
My Snippets

PHP Lint Checker Login or Register to Bookmark this snippet

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 Contact JC

Added by JC on 13th July, 2010

Comments

There are no comments about this snippet.

Post Comment HTML is allowed

You must be registered and logged in to post a comment.

Login here to post a comment