Forum Moderators: coopster
<?php
$current_dir = '/mywebdirectory';
$dir = opendir($current_dir);
echo '<p>Dirctory Listing:</p><ul>';
while ($file = readdir($dir)) {
echo "<li>$file</li>";
}
echo '</ul>';
closedir($dir);
?>
I can read the files but I can't download them. Can anyone help me modify this code to make the files available for download.
Thanks