note 47683 deleted from function.scandir by felipe

From: Date: Fri, 29 Aug 2008 23:23:05 +0000
Subject: note 47683 deleted from function.scandir by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-143992@lists.php.net to get a copy of this message
Note Submitter: skatecrazy1 at digibase dot ca ---- Scandir can be used to make directories of files not unlike apache's indexes, but CSS enabled and fully customizable: <? //in this example, we'll say the directory is "images" $list = scandir("images"); $i = 0; $num = count($list); while($i < $num){ print "<a href=\"images/$list[$i]\">$list[$i]</a><br />"; $i++; } ?> That will print all the files in the "images" directory linked to the files.

« previous php.notes (#143992) next »