Ver Mensaje Individual
  #17 (permalink)  
Antiguo 16/02/2003, 06:54
Avatar de ORPHEO
ORPHEO
 
Fecha de Ingreso: diciembre-2002
Mensajes: 77
Antigüedad: 21 años, 4 meses
Puntos: 0
Bien, algo he conseguido (véis como me esfuerzo? )

Código:
Código PHP:
<html>
<body>
<form>
<?php


$dir 
opendir('.');

while(
false !== ($file readdir($dir))) {
if(
is_dir($file)) {
echo 
"<a href=$file>";
echo 
"$file"."<br>";
echo 
"</a>";
} else die;

}
closedir($dir);

?>
</form>
</body>
</html>
Y me devuelve esto (con sus respectivos links):

.
..
0001
0002

Y ahí acaba.

Voy bien, no?

Ahora bien, cómo elimino el . y lo .. ?

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