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

Retour