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