salve.. vorrei creare una photogallery tipo schema
ma x ora sn riuscito sl a caricare le anteprime e a mettere le descrizioni...
potreste darmi qualche dritta su come procedere???

grazie


Codice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento senza titolo</title>
</head>
<?php

$dir 
"gallery";
$img_dir "./$dir";
$thumb_img_dir "./thumb_$dir";
$handle opendir($thumb_img_dir);

function 
prova() {
$lines file('');
foreach(
$lines as $line_num) {
   echo 
"$line_num";
   }
}


while (
false !== ($files readdir($handle))) {

if (
$files != "." && $files != "..")
{
print 
"[*]<a href=\"$img_dir/$files\">[img]$thumb_img_dir/$files[/img]</a>
file_get_contents('descrizioni/' $files '.txt');

}
}



?>
<body>
</body>
</html>