Re: Best strategy for creating an application scoped variable? [message #172041 is a reply to message #172032] |
Fri, 28 January 2011 07:12 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
laredotornado(at)zipmail(dot)com wrote:
> Hi,
>
> I'm using PHP 5.2. I would like to populate a hash from a database
> query. The hash should be available to all users of the application
> and would only be updated very occasionally. The database query is
> expensive, and I would prefer only to run it once, whenever PHP was
> restarted, or on the rare occasion when the database data changed.
> What is the best strategy for implementing this hash?
>
> Thanks, - Dave
PHP is restarted every time someone invokes a web page.
|
|
|