Ver Mensaje Individual
  #7 (permalink)  
Antiguo 07/09/2004, 19:26
Avatar de jpinedo
jpinedo
Colaborador
 
Fecha de Ingreso: septiembre-2003
Ubicación: Lima, Perú
Mensajes: 3.120
Antigüedad: 20 años, 7 meses
Puntos: 41
En tu caso deberás poner la ruta a ese directorio en el href del enlace
Código PHP:
<?
$the_array 
= Array();
$handle opendir('archivos/.');
while (
false !== ($file readdir($handle))) {
   if (
$file != "." && $file != "..") {
   
$the_array[] = $file;
   }
}
closedir($handle);
sort ($the_array);
foreach(
$the_array as $val){
   echo 
"<a href=\"archivos/$val\">$val</a><br>";
}
?>
Saludos