Re: application-wide shared data/object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rasmus Lerdorf wrote:

Not much documentation is needed:

 if(!$dict = apc_fetch('dict')) {
   $dict = function_that_returns_a_dictionary_array_or_object();
   apc_store('dict',$dict);
 }

That's all. [snip]

-Rasmus

Wow, I should have tried harder to make it work.. thnx !

Evert

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux