Find syntax errors in php files with one command

12/04/2015 By emehany

find php syntax errors in a directory :

 

find -L directory/to/scan -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l

Leave a comment

Login to Comment

Loading