files directory

If you want to list all files from a folder automatically by using a PHP script and get them with link then here is a very simple method to do that. This script reads contents of a folder and lists those contents with link to them.