Nei link che ti ho postato ci sono anche gli esempi...
comunque prova così
Codice PHP:
<?
$imagedir = "images"; //The image folder
$thumbdir = "thumbs"; //The thumbnail folder
$columns = 9; //How many images displayed per line
include "header.php";
?>
<table>
<tr>
<td>
<? if ($show != "") //show the current image if any
{
print "<img src=images/$show>
";
}
?>
</td>
</tr>
</table>
<table>
<tr>
<?php
$i=0;
$handle=opendir($imagedir);
while (false!==($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$dir_file = $imagedir."/".$file ;
$kb = ceil(filesize($dir_file)/1024) ;
list($px_larghezza,$px_altezza) = getimagesize($dir_file);
print "<td>[url="index.php?show=$file><img"][/url]
".$file." ".$px_larghezza."x".$px_altezza." px - ".$kb." KB
</td>";
++$i;
if($i == $columns) { print "</tr><tr>";
$i = 0;
}
}
}
closedir($handle);
?>
</tr>
</table>
</body>
</html>
GRAZIE A TUTTI PER L'AIUTO
![]()
[/QUOTE]