note 12118 deleted from function.count by philip

From: Date: Fri, 13 Dec 2002 00:24:27 +0000
Subject: note 12118 deleted from function.count by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40833@lists.php.net to get a copy of this message
nice use of the count function i think. and a nice way to display images in a directory. (if that is what the directory is for) otherwise tav\ke the image src tag and reaplace the td with tr. if(!($dp = opendir($archive_dir))) die("can't open $archive_dir"); while($file = readdir($dp)) $filenames[] = $file; closedir($dp); sort($filenames); for($i=0; $i < count($filenames); $i++) if($filenames[$i] != '.' && $filenames[$i] != '..') echo ("<td><a href=\"$archive_dir/$filenames[$i]\"><img src=\"$archive_dir/$filenames[$i]\" height=50 width=50 border=0 alt=\"$filenames[$i]\"><br></td>");

« previous php.notes (#40833) next »