I allready spend 2 hours searching for a selution, but it seams god is not helping today
Code: Select all
<?php
if ($handle = opendir('')) {
echo "Download Files:<br>";
/* This is the correct way to loop over the directory. */
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if (is_dir ($file != "." && $file != "..")) {
echo "<a href="$file">$file\n<br>";
}
}
closedir($handle);
}
}
?>