[PHP] Fw: Speed of the PHP Parser MySQL vs. textfiles

2002-09-25 Thread Holger Heinze, Portalmeister GmbH


Hi people, maybe someone here has experience with this question:

We have to create a CMS System for beginners. For storing data, we have 3
possibilities:


1. Store Data in MySQL, query the database, inlcude the dynamic content via
php.

echo $mysqldata[headline].P\n;

2. Store Data in Textfiles holding the Data like this:

?
$userpreferences[headline] = My Headline;
$userpreferences[bgcolor] = #00FF00;
// etc.
?

This would mean, we just include the preferences file at the top of the php
script generating the output page. (A lot less coding i think)

3. Generate HTML pages (soc. cache) everytime the user makes changes to his
pages.


I just had an argument with a co-worker and I would like to have your guys'
opinion on this:

Combination 1: Store frequently changed info in 1. MySQL Database and rarely
changed data in 2. Textfiles that are included.

Combination 2: Store frequently changed info in 1. MySQL Database and rarely
changed data in 3. Plain HTML Cache files.

I won't say which one is mine! ;-)

So, which one would you guys prefer, and what do you think is faster ...
Included Textfiles or HTML or MySQL ?

We also of course have to take the time and complexity of the coding into
consideration.

Thanks a lot for any answer!

(Also thankful for urls to php parser benchmarks etc...)

Holger Heinze


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Fw: Speed of the PHP Parser MySQL vs. textfiles

2002-09-25 Thread Holger Heinze, Portalmeister GmbH

Hi,

apologies for the confirmation, didn't even know it was set on this Computer
(not my own) until I got it myself.

I hate it =)

Sorry again,
Holger



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php