Re: persistent storage in PHP
| From: | Michael Sims | Date: | Thu, 08 May 2003 00:05:59 +0000 |
| Subject: | Re: persistent storage in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146761@lists.php.net to get a copy of this message | ||
On Wed, 07 May 2003 18:34:06 -0400, you wrote:
>
>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?
Take a look at the shared memory functions (shmop_open, shmop_read,
shmop_close, etc.). I have no experience with them myself, but it
looks like with a little effort you could get the functionality you
want from them:
http://www.php.net/manual/en/ref.shmop.php