Answers for "php load image from folder"

PHP
1

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();
Posted by: Guest on August-08-2020
0

php file for image load

$image = 'path/to/image.jpg';
header('Content-Type: image/jpeg');
readfile($image);
Posted by: Guest on September-04-2020

Code answers related to "php load image from folder"

Browse Popular Code Answers by Language