note 10942 deleted from class.dir by aidan

From: Date: Sun, 05 Sep 2004 07:22:55 +0000
Subject: note 10942 deleted from class.dir by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76046@lists.php.net to get a copy of this message
Note Submitter: mikeh at fried-line dot com ---- This lists all files from here (".") on down. [Linux;Apache/1.3.4;PHP 3.0.15] <?php function getDirList ($dirName) { $d = dir($dirName); while($entry = $d->read()) { if ($entry != "." && $entry != "..") { if (is_dir($dirName."/".$entry)) { getDirList($dirName."/".$entry); } else { echo $dirName."/".$entry."<br>\n"; } } } $d->close(); } getDirList("."); ?>

« previous php.notes (#76046) next »