[Solved] How to read/load whole directory via PHP [closed]

[ad_1]

scandir will out put the directory contents into an array which you will need to loop through to build your images.

 $files = scandir('dir/images');
 foreach($files as $file)
 {
      echo "<img src="https://stackoverflow.com/questions/27026418/dir/images/".$file.""/>";
 }

0

[ad_2]

solved How to read/load whole directory via PHP [closed]