I would like to acomplish this with simple html if possible
It's not.
The PHP code you want is:
PHP Code:
<?php
$dirname = '/var/www/download_folder'; // adjust as needed, such as 'C:\web_root\download_folder' for Windows
$webdirname = '/download_folder'; // what the directory appears as from the web browser's point of view
$dir = opendir($dirname);
$file_list = '';
while(($file = readdir($dir)) != false) {
if(($file != '.') && ($file != '..')) {
$file_list .= "<a href=\"$webdirname/$file\">$file</a><br/>";
}
}
closedir($dir);
?>
<p>
<?=$file_list?>
</p>
That should list all the files in $dirname as links to them.
You will, as ever, need PHP installed on your webserver. Downloads and instructions on php.net.
Bookmarks