Scusa, ma non fai prima a fare così?
[php]<?php
$dir = "/web/htdocs/miosito/home/imgs/";
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if ( $file == ".." || $file == ".") {
continue;
}
echo "filename: $file : filetype: " . filetype($dir . $file) . "\n<br>";
echo "<img src="".$dir."/".$file."">\n<br>";
}
closedir($dh);
}
}
?>[/php]
Cià