View Single Post

  #5 (permalink)  
Old 11-30-2006
Steve JORDI
 
Posts: n/a
Default Re: -> PHP4 Singleton implementation question <-

>Following the PHP documentation on http://nl3.php.net/static , I would
>suggest to replace this last line with a non-referencing one:
>$welcome = Welcome::getInstance() ;


Did this but it din't change a thing.

>As was posted earlier, PHP5 has solved the objects-and-references problem.


Yes, but I have to deal with PHP4, not 5 unfortunately.

I also tried to set a $_SESSION['welcome'] variable, but still, each
time I reenter my page, it's reassigned a new instance.

It's crazy, I would never have thought that it would be such a hassle
to keep a variable value between pages (without using URL parameters).

Thanks anyway.

Sincerely,
Steve JORDI

(Remove the K_I_L_LSPAM from my email address)
------------------------------------------------
1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
Switzerland WWW: www.sjordi.com
------------------------------------------------
Volcanoes at www.sjordi.com/volcanoes
MovieDB at www.sjmoviedb.com
------------------------------------------------
Reply With Quote