Re: set values once



julian_m wrote:

> let say that i want to allow someone (the site admin maybe) to chose
> certain configuration values, for instance
<snip>
>
> I could keep this info in the database, but i should read it every time
> a page is rendered... (open connection, query, close conn)
>

So put it in a file then (although it's not *that* much of an overhead using
the DB):

file_put_contents($config_file, serialize($options));

and

$options=unserialize(file_get_contents($config_file));

C.
.



Relevant Pages