Is there another way to read the files from a directory?

I tried the following:

foreach (glob("*.txt") as $filename) {
     echo "$filename size " . filesize($filename) . "\n";

but get an error whether safe mode is on or off.

I'm just learning as you might guess.

Steve Mallett - Stable, Open Source Apps
[EMAIL PROTECTED] | [EMAIL PROTECTED] <personal> | With new, all powerful, blogging 

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to