"; while ($file = readdir($myDirectory)) { if (($file != ".") && ($file != "..") && ($file != "index.php") && !(is_dir("$dire/$file")) ) { $files[] = $file; if (is_int($i / $cols)) { list($width, $height) = getimagesize("$dire/$file"); echo ""; ?> "; echo ""; } else { list($width, $height, $type, $attr) = getimagesize("$dire/$file"); echo ""; ?> "; echo ""; } $i++; } } echo ""; closedir($myDirectory); ?>

PHPphotoAlbum
Easy quick Photo Album builder