Skip to content

Instantly share code, notes, and snippets.

@SpEcHiDe
Created June 23, 2016 10:12
Show Gist options
  • Save SpEcHiDe/3bdeb2c85058045fc5ce8d08226961f0 to your computer and use it in GitHub Desktop.
Save SpEcHiDe/3bdeb2c85058045fc5ce8d08226961f0 to your computer and use it in GitHub Desktop.
AJ
<link rel="stylesheet" href="css/bootstrap.css" type="text/css">
<?php
$i = 0;
$dirname = "media/images/iconized/";
$images = glob($dirname."*.png");
/*
I do not think that this is a good algorithm, ... :(
*/
foreach($images as $image) {
echo "<div class="row">";
echo "<div class='col-sm-6'>";
echo '<img src="'.$image.'" />';
echo "</div>";
echo "</div>";
$i = $i + 1;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment