RE: [PHP] persistent storage in PHP
| From: | Lance Lovette | Date: | Wed, 14 May 2003 03:47:18 +0000 |
| Subject: | RE: [PHP] persistent storage in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147538@lists.php.net to get a copy of this message | ||
If you are not running PHP under a Windows platform and can compile
extensions into PHP the most efficient way to solve your problem may be with
a PHP extension I developed. It handles constants and provides a type of
persistent variable too. It has been immensely useful for my projects.
http://pwee.sourceforge.net/
Lance
> -----Original Message-----
> From: stark@stark.dyndns.tv [mailto:stark@stark.dyndns.tv]On Behalf Of
> Greg Stark
> Sent: Wednesday, May 07, 2003 6:34 PM
> To: php-general@lists.php.net
> Subject: [PHP] persistent storage in PHP
>
>
>
> How do I cache data persistently across page calls? As near as I
> can tell all
> the variable scopes in PHP terminate at the end of a page and the
> next page
> starts with a clean slate.
>
> Surely that's not 100% true and there's some way to store data
> that will be
> available on the next invocation? Perhaps there's some external
> shared library
> solution that stores data conveniently?
>
> I know I could write out a file and then load it back next time
> but if I do
> that I may as well just go back to the database. I'm going to have tons of
> itty bitty bits of data all coming from the database and I want
> to just cache
> in an associative array to reduce traffic since they're
> infrequently updated
> data.
>
> --
> greg
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>