Re: set values once
- From: Colin McKinnon <colin.deletethis@xxxxxxxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 09:38:40 +0100
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.
.
- References:
- set values once
- From: julian_m
- set values once
- Prev by Date: Re: MD5
- Next by Date: Re: Session Management
- Previous by thread: set values once
- Index(es):
Relevant Pages
|