Quick Search:
Oracle PL/SQL Code Library
Find Or Post Oracle Jobs
Oracle Discussion & Chat
 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 Bookmark and Share

<< 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 {} \;

Oracle Magazine
and Oracle White Papers

SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.

Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver.

Click here to find out more
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 44 users online    © 2009 psoug.org

Forgot your password?