I'm building a website which has multiple gallery pages where the images are selected with PHP. The working code for this is:
<?php
$folder = 'galleries/album-1';
$filetype = '*.*';
$files = glob($folder.$filetype);
foreach ($files as $file)
{
echo '<div class="photoHolder"><div class="photoCell"><a class="fancybox" rel="group" href="'.$file.'"><img class="photo" src="'.$file.'" alt="EXIF DATA"></a></div></div>';
}
?>
What I need to do is to pull out the EXIF data for each photo to use in the alt
tag but I'm unsure on how and where to do this in the code I have. Any suggestions?