persisting data objects

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tischler
Forum Newbie
Posts: 1
Joined: Mon Sep 16, 2002 11:12 am

persisting data objects

Post 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 :?:
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Uh oh!

Post 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
Post Reply