Tuesday, July 29, 2008

Find syntax error without executing PHP file


Command to check PHP files for errors without executing

find /path/to/code -name *.php | xargs -n1 php -l




No comments: