
28/01/2003, 09:50
|
| | Fecha de Ingreso: marzo-2002 Ubicación: la comuna de la florida santiago chile
Mensajes: 71
Antigüedad: 23 años Puntos: 0 | |
Una Solaq consulta mas Mira Cluster
primero que nada gracias encontre lo que necesitaba esta genial
ahora una consultita mas
tengo 9 imagenes en el directorio
bien me mustra las 9 pero me agrega 2 archivos mas y como no estan la imagenes no las muestra ademas en el nombre me muestra un punto y en la otra me muestra dos puntos
este seria el codigo
<?php
// Note that !== did not exist until 4.0.0-RC2
if ($handle = opendir("path/to/files/")) {
echo "Directory handle: $handle\n";
echo "Files:<br>";
/* This is the correct way to loop over the directory. */
while (false !== ($file = readdir($handle)))
{
?>
<img src="path/to/files/<?echo$file?>" width="100" height="75" >
<?php
echo "$file<br>";
}
/* This is the WRONG way to loop over the directory. */
while ($file = readdir($handle)) {
echo "$file\n <br>";
}
closedir($handle);
}
?> |