Here is my code,
I am try to list the files under which ever path I specify.
it list the files fine, but when you click on it to view the files
it give s you page not found..
Is there any of fixing this problem?
thanks
$path ="/htdoc/user";
$dir_handle = @opendir($path) or die("Unable to open $path");
// Loop through the files
while ($file = readdir($dir_handle)) {
if($file == "." || $file == ".." || $file == "dir_demo2.php" )
continue;
echo "<a href=\"$file\">$file</a><br>";
}
// Close
closedir($dir_handle);