http://qs1969.pair.com?node_id=246404


in reply to Re: Re: Re: Constant Variables
in thread Constant Variables

Would it be easier to just us a "flat file" type of database?

I think it might be easier to just use a seperate file called something like settings.config and then in the admin interface, make it where when the edit the settings, it just OPENS it, and gets the variables that way, then it can re-write the file everytime the administrator updates the values.

I know how to do that. I just thought it might be faster to just put them in my MySQL database. Of course, If I'm only requiring a config file, then it would probably be faster then running through a database and trying to assign variables.

At least in the config file I could make it look like this:
$default_font_family = "whatever"; $default_font_color = "whatever2";
Do you think that would be easier? I'm starting to feel that way, since there does not seem to be an easy way to do it with a Database. At least from what I seen thus far.

thx,
Richard