Say I have a directory with the following files, named by date (month, day and year).
030313.pdf 030513.pdf 040113.pdf 052013.pdf
I know it is possible to break about the file names using explode() and I'm assuming I would need to save the data somehow to a multidimensional array like this:
$files = array
(
array("030313.pdf", 03,03,13),
array("030513.pdf", 03,05,13),
array("040113.pdf", 04,01,13),
array("052013.pdf", 05,20,13)
);
Is it possible to then take that information, group by month, sort by day and then echo that out as a bullet list of links?
Something like:
March 2013:
- 03/03/2013 (linked to actual file)
- 03/05/2013 (linked to actual file)
April 2013:
- 04/01/2013 (linked to actual file)
May 2013:
- 05/20/2013 (linked to actual file)
If this is possible, say there were 100-1000's of files, would loading this page cause any server performance issues?
Thanks
Brett