<? // Belirtilen dizindeki toplam dosya sayisi // Dizini gir. $dir = "/home/user/image"; $handle = opendir($dir); $i = 0; while (false !== ($file = readdir($handle))) { if (!is_dir("$dir/$file")) { $i++; } } echo "Toplam Dosya: $i"; ?>