oups vi dsl c une fonction php5 :s
bah un truc style
$dir = opendir($root_dir);
$images = array(); //init pour array_push
while($file = readdir($dir)){ // celle là éxiste bien en php4 :p
if(is_file($file)) // on zappe les dossiers
if(ereg("(jpg|jpeg|gif|png)$",$filename))
array_push($file);
}
idem il manque tjours le grep -v ".thumbs/"'