Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Check for PHP syntax errors for multiple files in a set of folders using PHP's "lint" option.

Syntax check php files in folders:

find ./foo ./bar \( -name "*.php" -or -name "*.phtml" \) -print0 | xargs -0 -n 1 php -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment