Re: [PHP] Singleton pattern question
From: Raditha Dissanayake (jabber_at_raditha.com)
Date: 01/01/04
- Next message: Tom Rogers: "Re: [PHP] urlencoding."
- Previous message: Raditha Dissanayake: "Re: [PHP] missing java.so"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 01 Jan 2004 06:55:39 +0600 To: Hardik Doshi <php_hardik@yahoo.com>, php-general@lists.php.net
Hi,.
Unfortunately in PHP this may be true, however in j2ee if you use the
singleton pattern the result would be what you expect.
happy new year.
Hardik Doshi wrote:
>Hi Group,
>
>Currently i am using the singleton design pattern in
>one of my projects. I was under impression that by
>using the singleton pattern i need to initialize
>system configuration only one time (At the time of
>login) but once i implemented the system, i came to
>know that system initializes an instance on every
>request of the webpage (On every request, singleton
>class reads the system configuration and returns the
>new instance).
>
>Is that the normal nature of using the singleton
>pattern in the web environment?
>
>Please let me know.
>
>Thanks
>Hardik
>
>__________________________________
>Do you Yahoo!?
>Find out what made the Top Yahoo! Searches of 2003
>http://search.yahoo.com/top2003
>
>
>
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.
- Next message: Tom Rogers: "Re: [PHP] urlencoding."
- Previous message: Raditha Dissanayake: "Re: [PHP] missing java.so"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|