Page 1 of 1

persisting data objects

Posted: Mon Sep 16, 2002 11:12 am
by tischler
I need a global singleton object. I am wanting to load a property file into the PHP memory space, have access to it from all sessions and all page accesses, and not have to take the performance hit of it being serialized.

How do I do this?

Thanks all!

T :?:

Uh oh!

Posted: Mon Sep 16, 2002 1:05 pm
by BDKR
In short, you don't. :oops:

However, through the use of SRM, there is a thing called bannanas that can prolly help you with what you need. Banannas are supposed to be persistent variables.

Anyways, do a search on google for php and srm.

Another option considering that srm is still in development is shared memory. I've used for a couple of things. It's pretty cool stuff.

Hope that helps.

Cheers,
BDKR