based on the examples, does this mean that the asort function sorts an array from oldest to newest and rsort does it in reverse?
yep
Pinoy Webmaster
.com pimp
Gender:
Posts: 1126
6048 credits Members referred : 0
Philippine Beaches
« Reply #13 on: Nov 15, 2007, 11:52:51 pm »
thanks. that does it for me. what if there are multiple files that have the same time stamp? how would the script decide which file to choose? would it do it alphabetically?
thanks. that does it for me. what if there are multiple files that have the same time stamp? how would the script decide which file to choose? would it do it alphabetically?
from the same second? do you checked the manual for this info?
Pinoy Webmaster
.com pimp
Gender:
Posts: 1126
6048 credits Members referred : 0
Philippine Beaches
« Reply #15 on: Nov 16, 2007, 01:43:33 am »
yes, my articles are generated in batches of ten at a time so i guess they have the same time stamp up to the last second. it doesnt say in the manual. i think i will make a test page to find out.
thanks for pointing me to the right direction. i dont know what to look for to begin with.
Bill Gates is my home boy
Gender:
Posts: 710
4449 credits Members referred : 2
« Reply #16 on: Nov 16, 2007, 05:33:46 pm »
Keep in mind I don't know anything on php programming, but couldn't you use an RSS feed of some sort - it would seem that would ensure the last listing would be used from each directory?
Global Moderator
Internet Junkie
Gender:
Posts: 1807
9006 credits Members referred : 6
« Reply #17 on: Nov 16, 2007, 06:09:02 pm »
That would require writing a script, much like the one used, to create the RSS feed first. The site is just a collection of separately stored pages without the use of some CMS that has RSS feeds integrated.