Ya esta entonces:
Código PHP:
<?php
$ruta = "/home/jota/Escritorio/123/"; // Indicar ruta
$files=scandir($ruta);
/*
echo "<pre>";
var_dump($files);
echo "</pre>";
*/
foreach($files as $img){
if($img != "." && $img != ".." && $img != "Thumbs.db"){
echo "<br /><img src='/home/jota/Escritorio/123/".$img."' />";
}
}
?>