The default behavior of websites is that if you dont have index.html, index.php or a similar index page, then it just displays a list of files in the directory on the website.

There are some hosting companies that disable this for security reasons, which is good. But in some cases, you just want to give the list of files to visitors for download or viewing.

Here are 2 very good and easy scripts that I have found to be useful with this.

1 – PHP Directory listing from Evoluted.net:
This is a very straight forward and simple directory script written in PHP. You can see it in action on their website too.

2 – Relay Ajax file manager:
This script requires MySQL installed on the server. This indexes all the files in the directory and its subdirectories in MySQL. This provides search feature, optional uploading, access restriction, users, virtual directory support. Also, this has a good ajax interface.