// slideshow // ref: https://wpcrux.com/blog/how-to-display-dynamically-images-from-a-folder-in $directory = "images/"; $images = array_diff(scandir($directory), array('..', '.')); // retrieve all filenames except "." and ".." echo "
"; foreach ($images as $image) { echo "Slideshow Image"; } echo "
"; echo ""; echo "";