2011-04-27, 07:48:32
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.
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.
Addons: blue business theme, Online Visitors, Notepad