Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/06/2006, 13:21
lidmartins
 
Fecha de Ingreso: octubre-2005
Mensajes: 69
Antigüedad: 18 años, 5 meses
Puntos: 0
Exclamación

Hola .. gracias por tu respuesta---...

Mas sin embargo aun tengo el mismo problema.. se me paso comentarte el sistema operativo que usan el servidor es Unix Apache/1.3.26 (Unix) PHP/4.3.10 mod_perl/1.27 FrontPage/5.0.2.2510 (esto lo obtuve con $_SERVER['SERVER_SOFTWARE']) y al hacer el $_SERVER['DOCUMENT_ROOT'] me sale /imedia/users/kiteman/htdocs

Sin embargo al colocar el path en el codigo abajo no me lista el contenido... AUXILIO!!!!

Código PHP:
<?
$soft
=$_SERVER['SERVER_SOFTWARE'];
echo 
"SO!! ".PHP_OS;
echo 
"<br>software: " .$soft;

$dir=$_SERVER['DOCUMENT_ROOT'];

echo 
"<br>localidad:  ".$dir;

if (
is_dir($dir)) {   //Indica si el nombre de archivo es un directorio
   
if ($dh opendir($dir)) {
       while ((
$file readdir($dh)) != false) {
               echo 
"<br>filename: $file <br>";
       }
       
closedir($dh);
   }
}

?>
Gracias....
__________________
Ana Martins