On Tue, 17 Feb 2004, Adam Bregenzer wrote: > Great response, you saved me a lot of typing. :) > > To add one thing, I have code that I use to easily persist an object > across a session, additionally it can save the class's static properties > (hacked into PHP4[1]). With this and my implementation of the singleton > pattern I am able to persist a singleton throughout a session. It's not > exactly what you are talking about but can be just as useful. > Additionally you can use a database or shared memory to implement global > variables and save objects/static variables/whatever into them. Of > course, once you have variables available to multiple instances of PHP > you will have to deal with locking issues.
I don't want to plug anything, but have a look at www.vl-srm.net; it tries to achive this (note: site is a bit outdated). Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php