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:

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)
 Script Name: Maintain a Single Database Object in PHP 5
 Your Name:
 Your Email:
 Your Friends Name:
 Your Friends Email:
 Script Name : Maintain a Single Database Object in PHP 5
 Reason :
 Message :
  Security Code:
  •  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