Question : Extract images from a folder in php
Answered by : akbarali
<?php
function rasmname(){ $dirname = "./"; $images = glob($dirname."*.jpg");
foreach($images as $image) { echo '<img src="'.$image.'" /><br />'; }
}
rasmname();
Source : | Last Update : Sat, 15 Aug 20
Question : display image in php from folder
Answered by : black-bat-xw45nii1k5qb
<html> <head> <title>display image</title> </head> <body> <p>Here in your form and text</p> <?php echo "<img src='image-name.png' >"; ?> </body> </html>
Source : https://wlearnsmart.com/display-image-in-php-from-folder-directory/ | Last Update : Tue, 14 Jul 20