<?php $d = dir("."); while (false !== ($entry = $d->read())){ if(!((strpos($entry, ".jpg")===false)and(strpos($entry, ".gif")===false)and(strpos($entry, ".png")===false)and(strpos($entry, ".bmp")===false))){ echo " \nJmeno: ".$entry."\n\n"; } } $d->close(); ?>