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  http://OSDir.com - Stable, Open Source Apps
[EMAIL PROTECTED] | [EMAIL PROTECTED]
http://open5ource.net <personal> | With new, all powerful, blogging 
action!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to