Re: Server-Wide Persistent objects in PHP?
| From: | derick@php.net | Date: | Wed, 05 Dec 2001 10:54:31 +0000 |
| Subject: | Re: Server-Wide Persistent objects in PHP? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72566@lists.php.net to get a copy of this message | ||
On Wed, 5 Dec 2001, Edin Kadribasic wrote:
> The trouble with remote object access mechanisms is that most of them are
> really slow. I had great success with serializing objects and arrays into
> shared memory. All of that was done in PHP using sysvshm extension. Maybe
> some system support for that could make it even easier and hopefully
> even faster.
The 'remote' accessesible objects can also be on the same server, with
communications trhough unix domain sockets, this shouldn't be that slow.
> The approach is not perfect. Your objects become readable to every
> user on the same webserver, so it would probably be impractical for ISPs
> to enable it.
In SRM objects are bound to a session (if that is requested from the
script while creating an object).
regards,
Derick