Howdy,
I've got a friend who's running a blog off using blogger, and he's taken advantage of the feature that, when archiving, creates a separate page for each entry. In the process, the archiving also creates two new directories. One for the year, and the other for the month. So, he's got the following directory structure:
--- /
------ /2004/
--------- /11/ [files - plain text]
--------- /12/ [files - plain text]
------ /2005/
--------- /01/ [files - plain text]
--------- /02/ [files - plain text]
What he wants to do is create a page in the root, that parses the /2004/ and /2005/ directories (and it's subdirectories), takes the text from the files in those directories, and adds them all to the new page in the root. Essentially, he wants to combine all of the files. And he wants to do it on the fly.
Now, I'm not all that wonderful at PHP. As I've said here before, if it's ASP, or even .NET, I could probably do it just fine, but PHP is an entirely different beast to me. If the information was databased, it'd be a simple retrievable script that goes into the DB, pulls out the data, dumps it, sort it by date, and voila, it's all done. Not the case here, obviously.
Can anyone help me write a script to do this? I would really, really appreciate it.
Thanks,
-----------------------------------
-Dave
Maker of stuff, user of things
-----------------------------------