Hello folks,
Please view the following page: http://www.roy.lu/futuraplay/
I am using this code:
1. Why does this display a . and a .. in addition to the files in the directory? - I don't want thisPHP Code:$dir="./download"; // Directory where files are stored
if ($dir_list = opendir($dir))
{
while(($filename = readdir($dir_list)) !== false)
{
?>
<p><a href="<?php echo $filename; ?>"><?php echo $filename;
?></a></p>
<?php
}
closedir($dir_list);
}
2. Why don't the links include the real file path? Hence the pictures won't open...
Thanks in advance for your help.
Roy



Reply With Quote
Bookmarks