I can always use the default view of a directory listing that a browser generates when you don't have an html file
The browser doesn't generate this, the server does. The easiest way to solve your problem is to edit this template.
Failing this, you would need a server-side script:
PHP Code:
<?php
$path = "/var/www/html/files"; // Path from the server's point of view
$browserpath = "/files"; // Path from the browser's point of view - no trailing slash!
$files = "<ul>\n";
$dir = opendir($path);
while($file = readdir($dir)) {
if(($file != ".") && ($file != "..")) {
$files .= "\t<li><a href=\"$browserpath/$file\">$file</a></li>\n";
}
}
closedir($dir);
?>
Files in <?=$browserdir?>:
<?=$files?>
Bookmarks