PHP command line syntax check

linux, php Add comments
php -l file.php

Check all PHP files in the current directory

for i in *.php; do php -l $i; done

Check all PHP files in the current directory and all subdirectories

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

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in