spective of the request.
p
- Original Message -
From: Alexander Skwar [EMAIL PROTECTED]
To: Purushotham Komaravolu [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 2:53 PM
Subject: Re: [PHP-DEV] singleton feature
So sprach Purushotham Komaravolu am 2002-
Purushotham Komaravolu wrote:
I have a small suggestion. I guess it is a good feature to
have a provision to have a Singleton class per webserver instance.
You can do this with SRM.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I
Hi ,
I have a small suggestion. I guess it is a good feature to
have a provision to have a Singleton class per webserver instance. This is
especially useful for maintain user defined connection pools, loggers etc.
Thanks
Regards,
Puru
So sprach Purushotham Komaravolu am 2002-06-24 um 11:39:36 -0700 :
Hi ,
I have a small suggestion. I guess it is a good feature to
have a provision to have a Singleton class per webserver instance. This is
especially useful for maintain user defined connection pools, loggers
PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 2:53 PM
Subject: Re: [PHP-DEV] singleton feature
So sprach Purushotham Komaravolu am 2002-06-24 um 11:39:36 -0700 :
Hi ,
I have a small suggestion. I guess it is a good feature to
have a provision to have a Singleton
Purushotham Komaravolu wrote:
Is there any way to create a singleton in Php4?
Yes, but this is the wrong list to ask such questions.
Anyhow:
PHP 4
?php
class Singleton {
function getInstance() {
static $instance;
if
Hi All,
Is there any way to create a singleton in Php4? I am trying to create a
singleton clas for database connection pooling( so the class should be a singleton for
the webserver instance and should be singleton across requests).
Regards,
Puru
Has anyone any ideas on how to implement a Singleton in PHP4 ?
Thanks,
Victor
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
On Mon, Oct 22, 2001 at 09:12:29PM -0200, Victor Hugo Oliveira wrote:
This would be more appropriate on php-general, btw.
Has anyone any ideas on how to implement a Singleton in PHP4 ?
The Horde code uses singleton's extensively. For example: