Over a million developers have joined DZone.

Check The Syntax Of A Bunch Of PHP Files All At Once

·
Will find all files ending with 'php' and execute the syntax check of php for every found file. Useful if you quickly want to see which php file contains a parse error.


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

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}