Equivalent to JSP scope="application" in PHP
| From: | Nick Loman | Date: | Tue, 21 Aug 2001 12:49:01 +0000 |
| Subject: | Equivalent to JSP scope="application" in PHP | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63959@lists.php.net to get a copy of this message | ||
Hey,
Been using JSP recently (yeah, I know) and have found one (1) good thing
about it which is that if you create a "bean" with scope=application you
can then store data (e.g. a cached content array) within the bean which
all pages can access the same instance of. I can't think of the equivalent
thing in PHP, can anyone else?
Quite useful as a middle ground in terms of page weight between going to
SQL for content each page and pre-caching it all as HTML.
Nick.