The Gippy Pages

article

Quickly validate PHP files

Jun 26, 2009 | Computers, PHP Scripting | By Shawn Parker

Ever needed to quickly scan a directory full of PHP files for syntax errors? You can do this quickly on a *nix command line with:

find . -type f -name \*.php -exec php -l {} \;

Tagged as: bash, command line, files, php, validate