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
-
From: Steven Mallett [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: June 08 2002 07:23 AM
Subject: [PHP] Reading from a dir.
Is there another way to read the files from a directory?
I tried the following:
foreach (glob(*.txt) as $filename) {
echo $filename size
On Saturday, June 8, 2002 at 3:23:01 PM, you wrote:
Is there another way to read the files from a directory?
http://www.php.net/readdir
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo