Gerhard: count | files im ordner zaehlen

Beitrag lesen

kann doch nicht so schwer sein

$anz=0;
$handle=opendir('/images/small/');
while ($file = readdir ($handle)) {
if ($file != "." && $file != "..") {
echo "<img src='images/small/$file' width=25 height=25>$file\n";
$anz++;
}
}
closedir($handle);

mfg gerhard