get all images from specified directories using php and display it code example
Example: Extract images from a folder in php
<?php
function rasmname(){
$dirname = "./";
$images = glob($dirname."*.jpg");
foreach($images as $image) {
echo '<img src="'.$image.'" /><br />';
}
}
rasmname();