Home » Tips, Tutorials & Articles » PHP » Maintain a Single Database Object in PHP 5
Advertisement
- Visit:
- Hits:
- Views:
- Platform(s):
- Database(s):
- License:
- Price:
- Version:
- Script Added:
- Last Updated:
- Developer:
- Script Link:
- Tags:
- Maintain a Single Database Object in PHP 5
- 115
- 1324
- N/A
- N/A
- PHP License
- Free
- N/A
- 23/10/2009
- 23/10/2009
- UltraMega Tech.
- http://www.ultramegatech.com/blog/2009/08/...
- php5 singleton pattern database tutorial
Description:
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.
Rated 0/5 (0%) (0 Votes)
- Other listings by this developer
Snippet: Autoloading Objects (PHP 5)
Tips, Tutorials & Articles » PHP
Create a Slide-In Panel with jQuery
Tips, Tutorials & Articles » JavaScript
Using MySQL Prepared Statements in PHP
Tips, Tutorials & Articles » PHP
Add Records to a Queue with jQuery
Tips, Tutorials & Articles » Ajax
Tips, Tutorials & Articles » PHP
Create a Slide-In Panel with jQuery
Tips, Tutorials & Articles » JavaScript
Using MySQL Prepared Statements in PHP
Tips, Tutorials & Articles » PHP
Add Records to a Queue with jQuery
Tips, Tutorials & Articles » Ajax