#!/bin/sh php_files=`ls *.php` php_exe='/usr/bin/php -l' for php_file in $php_files do # Need the 2> /dev/null on my server because php always complains # about some module problems and it makes the output hard to read. $php_exe $php_file 2> /dev/null done exit