I am working on a little project for my site and I am trying to get this script to ignore the index.html file and the .htaccess file in there. I just want it to display all files like .zip, .rar, .tar, .gz, .gtar, .ace, ect...
echo " <td width='70%'><select id='download'>";
echo " <option value=''>None</option>";
if ($handle = opendir("./modules/Downloads/files")) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo " <option value='".$file."'>".$file."</option>";
}
}
closedir($handle);
}
echo " </td>\n";