I have written code to upload the files of different types using php, and also i am saving their location information and date in database table.
i made a query to display list of files i have uploaded…and resulting output on a html page as follows
1.uploads/clouds.png
date and time
2.uploads/resume.pdf
dare and time
.......so on
is there any different any way to display them by their file types as like an operating systems do….. or any better way…. I am curious to know it… Thanks for any help…
This is a great script for generating file listings:
http://www.evoluted.net/thinktank/web-development/php-directory-listing-script
I also recommended you study the php
globfunction. Can be used like this:This will generate links to all PDF files in a directory.