Last active
July 29, 2016 21:26
-
-
Save dragonauta/882821d0d20b8928deae4046b1ec89c4 to your computer and use it in GitHub Desktop.
look at folder and list JPG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$directory = "sample_photos/images/"; | |
$images = glob($directory . "*.jpg"); | |
foreach($images as $image) | |
{ | |
$t = str_replace("images", "thumbnails", $image); | |
echo "<a href='" . $image . "' title='test' rel='lightbox[Brussels]'><img src='" . $t . "' /></a>'"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment