Hi,
This must be a rather dumb question, but I'll ask it anyway.
Me and my friend are making a simple news script for our website, and thus we are not going to use mysql. The idea was to use mod_rewrite for SEO friendly URLs e.g /news/2008/12/25/this-is-the-subject/ (== news.php?y=2008&m=12&d=25&s=this-is-the-subject )
The point is to make the script as light as possible, so which would be better:
1) Use file() to read one file that has all the news (per line), and check each array for the correct news.
2) Make each news a file (e.g [email]2008@12@25@this-is-the-subject.php[/email]). Then read the file names to an array and check each array for the correct news.
Hope that makes some sense. Thanks.