$files = glob("images/*.*"); for ($i=1; $i<count($files); $i++) { $num = $files[$i]; echo '<img src="'.$num.'" alt="random image">'." "; }Varianta cu afisarea numele pozei.
$files = glob("images/*.*"); for ($i=1; $i<count($files); $i++) { $num = $files[$i]; print $num."<br />"; echo '<img src="'.$num.'" alt="random image" />'."<br /><br />"; }