How to dynamicly create hyperlinks too all files in a directory?
Posted on 2008-02-11
I am building a site in which a user will upload file (excel spreadsheet, we'll call it report.xls), the file may then be downloaded and updated by another user and then re-uploaded. I want all versions of the file saved and avaible for download. I have create a MySql databse table with the following fields: "ID", "time", "uploader", and "filename". My question is 2 part: How do I create an upload script that will rename report.xls dynamicly so all versions can be saved to the same directory(we'll call the dir "ReportFiles"). Part 2: How do I create a page that will dynamicly list all files in "ReportFiles" dir, each with a hyperlink to the file?