How to write a PHP coding to list out all files and directories as links to them?
<p>This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with previous ones after it is being refreshed. (prefer in alphabatical order)</p>

<p>How to achieve this sort of functionality in PHP? Please provide sample coding as well. (and any references)</p>
