Ver Mensaje Individual
  #20 (permalink)  
Antiguo 16/02/2003, 10:44
Avatar de ORPHEO
ORPHEO
 
Fecha de Ingreso: diciembre-2002
Mensajes: 77
Antigüedad: 21 años, 4 meses
Puntos: 0
Gracias, epplestun. Pero tu código me daba error de argumento no válido.
Lo he mezclado con el mío, así:
Código PHP:
<html>
<head>
<STYLE type=text/css>
   A:link { COLOR: #33FF33; TEXT-DECORATION: none } A:active { COLOR: #FF0000; TEXT-DECORATION: none } A:visited { COLOR: #FF00FF; TEXT-DECORATION: none } A:hover { COLOR: red; TEXT-DECORATION: underline }
    </STYLE>
<base target="telon">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#000000" text="#00FFFF" leftmargin="0" topmargin="0" fontsize="1">
<div align="left"><form>
  <table height="2" border="0" cellpadding="0" cellspacing="0">
    <tr><td><font size="1">&nbsp;&nbsp;&nbsp;-&nbsp;GALERIA:</font></td>

<?php


$dir 
opendir('.');

while(
false !== ($file readdir($dir))) {
if (
$file != "." AND $file != "..")
{
if(
is_dir($file)) {
echo 
"<td width=3 align=center><font size=1 color=#000000>&nbsp;";
echo 
"<a href=$file>";
echo 
"$file"."</a>";
echo 
"</font></td>\n";
}

}
}
closedir($dir);

?>

</tr>
</table>
</form>
</div>
</body>
</html>
Y funciona!!!

Sólo me queda un pequeño detalle. Hay alguna manera de que me devuelva 1 2 3 ... en lugar de 0001 0002 0003..., sin tener que cambiar los nombres de las carpetas (cosa que no quiero)?

Salu2.
__________________
http://www.sexoparamo.com