RE: [PHP] When to use a text file rather then a database
| From: | John W. Holmes | Date: | Sun, 06 Apr 2003 03:16:17 +0000 |
| Subject: | RE: [PHP] When to use a text file rather then a database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142567@lists.php.net to get a copy of this message | ||
> I have a text blurb that is on the home page of a site. I need to make
> this block of text editable through a form in the admin section of
the
> site. Is it worth having a table in the db or would I be better off
> writing to a file for this?
Just use a file. The only problem you'll have is if two people try to
edit the file at the same time, but it doesn't sound like that'll be an
issue.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/