Maintain a Single Database Object in PHP 5 Using the Singleton Pattern

When creating a PHP application, it is usually necessary to connect to a database to perform certain tasks. In some cases you only want to open a connection when necessary, but limit it to a single connection. This way you don't waste resources on unnecessary database connections. For these situations I use the Singleton Pattern, which is perfect for this.

 
Visit Site:
Maintain a Single Database Object in PHP 5 Using the Singleton Pattern
Filed in:
PHP / Tutorials & Tips / Development
Date Added:
Aug 12, 2009 
Last Updated:
Aug 13, 2009 

License and Pricing Information

PHP

Price: $0.00 USD

Publisher site visits: 59
Average rating: 0.00
Total ratings: 0

Be the first to review this listing!

Publisher Info

Author:
UltraMega Tech. 
Other listings by this publisher

Share this Listing