Re: application-wide shared data/object
| From: | Evert | Rooftop | Date: | Thu, 28 Jul 2005 19:21:30 +0000 |
| Subject: | Re: application-wide shared data/object | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-219554@lists.php.net to get a copy of this message | ||
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