el codigo tiene el siguiente error: deves poner $ruta,$file:
Código PHP:
Ver original<?php
$ruta = "images/"; // Indicar ruta
$filehandle = opendir($ruta); // Abrir archivos while ($file = readdir($filehandle)) { if ($file != "." && $file != "..") {
?>
<p><img src="<?php echo $ruta,$file; ?>" width="300px" ><br></p>
<?php
}
}
?>