Dartonion,
I had done something like that already, with the only difference that I was using a database (Mysql) to store path and details of the image.
Very likely you will need to resize the images first (expecially if their size is very big or variates from image to image) and then display them.
However with php, you can list all .jpg and gif files in a given directory and then display them in a table set. To cut short, please refere to the php manual (in the section File System) there you will find also the example of a function that will list files in a directory (you should thank the french guy who did it, then).
Vin
===============================
Il me semblait l'avoir deja poste mais apparemment non, ou alors je ne
trouve plus ou, donc pour lister seulement certains fichiers dans un
repertoire, voila une petite fonction utile:
function listFiles($dir , $type){
if (strlen($type) == 0) $type = "all";
$x = 0;
if(is_dir($dir))
{
$thisdir = dir($dir);
while($entry=$thisdir->read())
{if(($entry!='.')&&($entry!='..')) {
if ($type == "all") {$result[$x] = $entry; $x++; next;}
$isFile = is_file("$dir$entry"); $isDir =
is_dir("$dir$entry");
if (($type == "files") && ($isFile)) {$result[$x] =
$entry; $x++; next;}
if (($type == "dir") && ($isDir)) {$result[$x] = $entry;
$x++; next;}
$temp = explode(".", $entry);
if (($type == "noext") && (strlen($temp[count($temp) -
1]) == 0))
{$result[$x] = $entry; $x++;next;}
if (($isFile) && (strtolower($type) ==
strtolower($temp[count($temp) - 1])))
{$result[$x] = $entry; $x++;next;}
} }
}
return $result;
}
donc on l'appelle en faisant
listFiles("/mon/rep/er/toire", "gif")
so you'll have only .gif files
Si vous voulez tous les fichiers et repertoires, mettez "all" au
lieu de "gif"; pour uniquement les repertoires, mettez
"dir" au lieu de "gif"; pour avoir uniquement les
fichier sans extension genre "README", tapez "noext" au
lieu de "gif"; et finalement pour avoir tous les fichiers (mais
pas les repertoires), tapez "files" au lieu de "gif".
Notez qu'un fichier genre monfichier.doc.gif sera reconnu en tant que .gif,
pas en .doc.