How to add template in codeigniter |how to create template in codeigniter| template in codeigniter 4
In this article I am discussing about how to fetch all images from a folder using simple php script. (No database needed).
Simply just make a php file and implement the below codes on that file.
<?php $my_images = glob("my_album/*.*"); for ($i=0; $i<count($my_images); $i++) { $image = $my_images[$i]; ?> <img src="<?php echo $image; ?>" width="200" height="200" /> <?php } ?>
Related posts