Jeg har fundet dette script på nettet, men hvordan skal den sættes sammen på websitet.
Jeg er ikke så stærk til engelsk, jeg har fundet det på
http://www.builderau.com.au/program/php/soa/Create_a_dynamic_photo_gallery_with_PHP/0,339028448,339210503,00.htmmappen hvor mine billeder ligger hedder Billeder
gallery.php
<html>
<head></head>
<body>
<table>
<?php
// define directory path
$dir = "Billeder";
// iterate through files
// look for JPEGs
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if (preg_match("/.jpg/", $file)) {
// read EXIF headers
$exif = exif_read_data($file, 0, true);
echo "<tr>";
// get thumbnail
// link to full image
echo "<td valign=top><a href=$dir/$file><imgsrc=thumbnail.php?file=$file></a><td>";
echo "<td valign=top><font size=-1>";
// get file name
echo "File: <b>" . $exif['FILE']['FileName'] . "</b><br/>";
// get timestamp
echo "Timestamp: " . $exif['IFD0']['DateTime'] . "<br/>";
// get image dimensions
echo "Dimensions: " . $exif['COMPUTED']['Height'] . " x " . $exif['COMPUTED']['Height'] . " <br/>";
// get camera make and model
echo "Camera: " . $exif['IFD0']['Model'];
echo "</font></td>";
echo "</tr>";
}
}
closedir($dh);
}
}
?>
</table>
</body>
</html>
thumnail.php
<?php
// define directory path
$dir = ".";
$image = exif_thumbnail($dir . "/" . $_GET['file']);
header("Content-Type: image/jpeg");
echo $image;
?>