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

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 solved How to read/load whole directory via PHP [closed]