Mine
public text v1 · immutable<?php
$dh = opendir("images");
$i = 0;
while (($file = readdir($dh)) !== false)
{
if ($file == "." || $file == ".." || $file == "thumbs") continue;
$i++;
$thumb = "images/thumbs/$i.jpg";
if (($i % 4) == 0)
{
echo "</tr><tr>";
}
echo "<td><table cellpadding='0' cellspacing='0' align='center'><tr><td align='center' class='banner'><a href='images/$file' target='_new'><img src='$thumb' width='150' height='112' border='0'></a></td></tr></table></td>";
}
?>