Is there a way (without purchasing an extension unless necessary) that I can insert the below simple PHP script into a page?
I have a module for custom HTML, but it strips any script. I need to automatically show a gallery of images located in certain folders which I can't do with HTML.
Code: Select all
<?php
// directory
$directory = "folder/uploaded/images/*/*/";
// file type
$images = glob("" . $directory . "*.svg");
foreach ($images as $image) {
echo '<img src="' . $image . '" width="50" /> ';
}
?>