Show all images in a folder with PHP Rumi, September 11, 2010 <?php //Your folder $files = glob("icons/*.*"); $colCnt=0; echo '<table border="0" style="width:590px;">'; for ($i=1; $i<count($files); $i++) { $colCnt++; if ($colCnt==1) echo '<tr>'; echo '<td width="25%" style="font-size:8.5px; font-family:arial">'; $num = $files[$i]; echo '<img src="'.$num.'" align="absmiddle" /> '; print substr(substr($num,6,100),0,-4); echo '</td>'; if ($colCnt==4) { echo '</tr>'; $colCnt=0; } } echo '</table>'; ?> Scripts