$rep="photos/"; $dir = opendir($rep); $i=0; while ($pic = readdir($dir)) { if (stristr($pic,"hau.jpg")) {$i++; imagesx($pic); echo "$larg
"; }