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"> - 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> ";
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.