Quick Search:
 
 PHP Code: Check syntax of multiple PHP files all at once Jump to:  
Category: >> PHP Code >> Check syntax of multiple PHP files all at once  

<< lastnext >>

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.

Note: This command is for Linux/ Unix based systems. This will not work on a Windows system.

Comment: (none)

Language: PHP
Highlight Mode: PERL
Last Modified: March 06th, 2009

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


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org