The easiest way would be to encode the date in the filename of the text you save. Then your index script can just read all the files in the diretory and sort them by filename. But that can look ugly so another thing I've done in the past is create directories called 2000, 2001 ... and within them, 2001/01, 2001/02 ... etc. and saved documents there. The index generation becomes slightly more difficult because you have to use File::Find instead of just readdir but only slightly. Plus if the list gets too long, you can easily break it up into several pages by year.
In either case, the principle of operation is the same — encode metadata in the file name so you don't have to carry extra files/DBs around.
In reply to Re: Need to make text file archive
by jaldhar
in thread Need to make text file archive
by peppiv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |