O problema é que lista até arquivos que gostaria que ignorasse. Alguem sabe como posso fazê-lo ignorar determinados arquivos?
<?php if ($handle = opendir('arquivos/.')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "<a href="; echo '"arquivos/'; echo "$file\">"; echo "<img src="; echo '"arquivos/'; echo "$file\" width='150' height='150'>"; echo '</a>'; echo ' '; } } closedir($handle); } ?>
Grato!