FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Best strategy for creating an application scoped variable?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Best strategy for creating an application scoped variable? [message #172041 is a reply to message #172032] Fri, 28 January 2011 07:12 Go to previous message
The Natural Philosoph is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using server to list CSS page list in menu
Next Topic: passing variable to a nested array
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 11:03:23 GMT 2024

Total time taken to generate the page: 0.04511 seconds