I have a peice of code that I was using for an old website and want to use it again in my new site, but the images aren't showing up for some reason.
The path to my gallery is correct and the code is a copy of an old working script. Can anyone suggest why this isn't working?
<?php
$folder = 'http://localhost/website/magazine/photos/galleries/2016/gallery/';
$filetype = '*.*';
$files = glob($folder.$filetype);
foreach ($files as $file)
{
echo '
<div class=\"galleryCell\">
<a class="fancybox" rel="group" href="'.$file.'">
<img class=\"galleryThumb\" src="'.$file.'" />
<div class=\"galleryThumbCover\"></div>
</a>
</div>
';
}
?>