Ver Mensaje Individual
  #5 (permalink)  
Antiguo 29/10/2003, 13:50
Avatar de caricatos
caricatos
Moderador
 
Fecha de Ingreso: abril-2002
Ubicación: Torremolinos (Málaga)
Mensajes: 19.607
Antigüedad: 22 años
Puntos: 1284
Hola otra vez:

Con las 2 magníficas ayudas hice esta página:

Código PHP:
<html>
<head>
<title>
PHP - Listado de animales
</title>
</head>
<body style="margin:0">
<?
$tipo 
= array("""gif""jpg""png");
$d dir("./postales/animales/");
echo 
"<table style='width=100%' border=\"1\"><tr><th><font <b>Imagen</b></font></th><th>Descripción</th></tr>";
$i 1;
while(
$entry=$d->read()) {
if (
is_dir($d->path.'/'.$entry)) {
}
$elemento $d->path.'/'.$entry;
if (
is_file($elemento)) {
$img GetImageSize($elemento$info);
if (isset(
$img))    {
    
$mostrar "<tr><td width=20% align=center valign=middle><img src=".$elemento." ></td><td>ancho: ".$img[0]."<br>alto: ".$img[1]."<br>";
    
$mostrar .= "tipo: ".$tipo[$img[2]]."<br>valores: ".$img[3]."<br>info:".$info."</td></tr>";
    echo 
$mostrar;
    }
}
$i++;
}
echo 
"</table>";
$d->close();
?>
</body>
</html>
que se puede ver en esta dirección:
http://www.pepemolina.com/dibujos.html
... Por ahora es solo un proyecto, pero va a mejorar...

epplestun: Muy buen enlace. Yo lo puse en mis favoritos.

Saludos