Hi there all!
I have just taken over a site that my friend did in php. His framework works quite well, but there is one thing that I would like to add to it. The users can make their own comments on each article on the e-zine, and for each article a file called "articlename.comment" is created, which holds the html code with the usercomments, in like guestbook format (it's a basic site so far, and we do not have database suport in our server...). What I would like to do is a script that takes all these files and print them on one page, so that the users only have to go to one page to see the latest comments to all the articles. This should be a fairly straightforward and easy task, but my php knowledge is not that good, and I just cant figure out how to do it. It would also be good if the files were sorted in date of change, so that the latest comments are show at the begining of the file. The .comment files are all in the same directory (/article_comments), so the code only needs to sort the files in date order and parse all the .comment files into a php/html document.
Does anyone have an idea on how to do this? If you could provide a short code snipet, I would be very grateful!
Thank you all in advance!
/Erik