1<?php
2$files = scandir('.');
3foreach ($files AS $file) if ($file!='.' && $file!='..' && $file!='icons.php') {
4	echo '<img src="./'.$file.'" title="'.$file.'">';
5}
6