2011-04-28, 00:12:49
yojoe Wrote:Wouldn't it be better to use a pattern for news files, like: news-year-month-day-ID as I suggested in newsmanager thread ?
This way you'd be able to scan whole news directory, push the output to an array, and for month==current echo array[2]
I feel there's a way simper solution, but I'm not a php mastah
ps. caching all data would be also great.
Thanks for your input, if noone suggests any better method I will give that a shot.