RE: [PHP] web application development question
| From: | SP | Date: | Sat, 27 Apr 2002 00:25:29 +0000 |
| Subject: | RE: [PHP] web application development question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94841@lists.php.net to get a copy of this message | ||
Say if you just had the values in a file then when someone wanted to see all
the values, you have to parse your config.inc.php file for all the values to
display them. Also when someone made a change then you would have to find
the value and replace with the new one.
Just thought it would be easier to just do a select on the database to
display the values and then if you make a change then just make a change in
the database and overwrite the old file.
-----Original Message-----
From: Miguel Cruz [mailto:mnc@stoic.net]
Sent: April 26, 2002 4:24 PM
To: SP
Cc: php-general@lists.php.net
Subject: RE: [PHP] web application development question
On Fri, 26 Apr 2002, SP wrote:
> How about storing it in a database like you said with variable and value
but
> when you change a value then you write over your config.inc.php file with
a
> new one. So you get to change the value easily in a database and by using
a
> file you make your app faster without any database access everytime.
What would be the point of using the database then?
miguel