File Directory Php

function directory($result) {
$handle=opendir(".");
while ($file = readdir($handle)) {
if ($file == "." || $file == "..") { } else { print "$file
\n"; }
}
closedir($handle);
return $result;
}
?>
Select the file you want to go to:


echo directory($result);
?>