News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Guilherme Blanco's Blog:
register_superglobal("¯name"¯);
February 05, 2007 @ 12:02:00

Guilherme Blanco is proposing an interesting idea in his new blog entry - adding built in functionality to the PHP core that would allow a developer to register their own custom suprtglobals.

Currently, we deal with a lot of interesting situations of web applications, and some really interesting are the superglobals variables. Seems there will be a change in superglobals soon and that's why I decided to post about it here.

His example of the need for something like this is as an alternative to using the Singleton pattern to work with multiple database connections in an application. His proposal is that, by including this register_superglobal functionality, it would make it easier to share these kinds of connections. He even includes a simple code example of how it might look.

0 comments voice your opinion now!
registersuperglobal superglobal singleton pattern database registersuperglobal superglobal singleton pattern database


blog comments powered by Disqus

Similar Posts

WebReference.com: Creating a Custom RSS Feed with PHP and MySQL

PHPMaster.com: Building a Domain Model - Integrating Data Mappers

Ralph Schindler's Blog: Composite Rowsets For Many-To-Many Relationships Via Zend_Db_Table

Matthew Weir O'Phinney's Blog: Extending Singletons

Zend Developer Zone: Zend Technologies Updates Zend Core


Community Events





Don't see your event here?
Let us know!


library opinion framework podcast version security interview package series composer release laravel install symfony application voicesoftheelephpant tool language community introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework