Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/12/2002, 22:55
Avatar de vampira
vampira
 
Fecha de Ingreso: noviembre-2002
Mensajes: 247
Antigüedad: 21 años, 5 meses
Puntos: 0
bueno si a alguiein le sirve yo lo hice asi.. de esta forma al hacer click sobre un directorio no se sale d ela pagina y lo maneja el servidor sino lo sigue haciendo el mismo script...

Código PHP:
<? 
if (!isset($path))
  
$path=".";
  echo 
"<PRE>";
  echo 
"<p><font face=\"Geneva, Arial, Helvetica, san-serif\"><b>Directorio $path\n</b></font></p><br>";
  
//using the opendir function
  
$dir_handle = @opendir($path) or die("Unable to open $path");

  
//running the while loop
 
  
while ($file readdir($dir_handle)) {
    if (
$file != "." && $file != "..") { 
     if (
is_dir($path."/".$file)) { 
       
$ruta=$path."/".$file;
       echo 
"<a href=\"dir.php?path=$ruta\"><font face=\"Geneva, Arial, Helvetica, san-serif\" color=\"#003366\"><b>[$file]</b></font></a><br>";
      }  
// if
     
else
      { 
$archivo=substr($path,1)."/".$file;
        
        echo 
"<a href=\".$archivo\" target=\"_blank\"><font face=\"Geneva, Arial, Helvetica, san-serif\" color=\"#003366\">$file</font></a><br>"; }
     } 
// if   
   
// while               
  
  //closing the directory
  
closedir($dir_handle);
  echo 
"</PRE>";


?>
el path se lo paso como parametro en cada link...
AU REVOIR!