Here is a simple script
for i in tempdata/*.xml
do
php -q XML2Compass.php $i
done
With NO xml files in tempdata the php script is executed with $i set to the string "tempdate/*.xml"
So I get ugly php errors about fopen() failing
I just want to find out whether there are any XML files BEFORE the FOR loop
for i in tempdata/*.xml
do
php -q XML2Compass.php $i
done
With NO xml files in tempdata the php script is executed with $i set to the string "tempdate/*.xml"
So I get ugly php errors about fopen() failing
I just want to find out whether there are any XML files BEFORE the FOR loop