Home >> Snippet List >> Snippet

Name
Check syntax of multiple PHP files all at once
Description
To check the syntax of all files ending with a 'php' file extension and execute the syntax check of php for every found file, you can use the command shown It is quite useful when you want to quickly see if any PHP file in a project or bunch of files, contains a parse error
PHP Snippet
/ -type f -name \*.php -EXEC php -l {} \;