TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: svdelle
Forum: Absolute Beginners 10-07-2009, 10:41 AM
Replies: 6
Views: 2,692
Posted By svdelle
Nope, variable still gets reset on every request....

Nope, variable still gets reset on every request. The singleton gets reinstanciated every freakin' time on the roundtrip to the server.

Simply cannot see how the singleton design pattern is of ANY...
Forum: Advanced PHP Programming 10-07-2009, 10:09 AM
Replies: 27
Views: 123,155
Posted By svdelle
And that would meen a roundtrip to a file on the...

And that would meen a roundtrip to a file on the client, or the database on the server. It seems pretty lame, that you cannot simply store a single instance of an object in a server variable.
Forum: Absolute Beginners 10-06-2009, 08:36 PM
Replies: 6
Views: 2,692
Posted By svdelle
Thanks, I'll check it out.

Thanks, I'll check it out.
Forum: Absolute Beginners 10-06-2009, 01:37 PM
Replies: 6
Views: 2,692
Posted By svdelle
Singleton in Session variable?

How can I store a singleton in a session variable, and only change properties if $_GET['lang'] is set?
Forum: Advanced PHP Programming 10-06-2009, 12:06 PM
Replies: 27
Views: 123,155
Posted By svdelle
Singleton and PHP?

Yeah, and why all this talk about singleton in PHP when ALL variables containing a singleton is destroyed on new request.

It seems we have this great pattern that is absolutely useless when it comes...
Showing results 1 to 5 of 5

 

All times are GMT. The time now is 12:17 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design