//define the path as relative
$basedir = "/home/derrickk/utvault.com/";
$path = "files/" . $_REQUEST['path'];
$fullpath = $basedir . $path;
//using the opendir function
$dir_handle = @opendir($fullpath) or die("Unable to open $fullpath");
//running the while loop
while ($file = readdir($dir_handle))
{
$filelink = $path . $file;
if($file!="." && $file!=".." && $file!="ut" && $file!="ut2004" && $file!="ut3")
echo "$file
";
}
//closing the directory
closedir($dir_handle);
?>