Retrieving an array of images on HTML page using PHP
问题 I am retrieving images from a directory using php. Images are displayed on PHP page (getUser.php) but how can these images be display on any HTML. getUser.php <?php $dir = 'images'; $file_display = array('jpg','jpeg','png','gif'); if (file_exists ($dir) == false) { echo 'Directory \'', $dir, '\' not found!'; } else{ $dir_contents = scandir($dir); foreach($dir_contents as $file) { $file_type = strtolower(end(explode('.', $file))); If($file !== '.' && $file !== '..' && in_array($file_type,