Reading from a dir.

From: Date: Sat, 08 Jun 2002 14:23:01 +0000
Subject: Reading from a dir.
Groups: php.general 
Request: Send a blank email to php-general+get-101274@lists.php.net to get a copy of this message
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 steve@opensourcedirectory.com | webmaster@opensource.org http://open5ource.net <personal> | With new, all powerful, blogging action!

« previous php.general (#101274) next »