News Feed
Sections




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

Cyberlot's Blog:
Using scalability to improve your PHP applications MySQL security Part 2
December 04, 2005 @ 16:36:13

cyberlot has posted the second part in his "Using scalability to improve your PHP applications MySQL security" series today on his blog.

In this edition, he gives an example of extending PDO to use two seperate database connections.

Here is a quick example I threw together to extend PDO so you can use 2 seperate database connections.

This extends PDO and only connects to the database when the first query is run. This way if you never use the database connection no time is wasted trying to connect.

It's a pretty simple script, and even those that haven't gotten to mess much with PDO can give it a shot. Basically, you just don't call __construct when creating things. You have to create it with another function that's more configurable...

0 comments voice your opinion now!
scalability pdo application security scalability pdo application security


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Localizing PHP Applications "The Right Way", Part 3

Zend Developer Zone: Developing Desktop Applications in PHP for Beginners

Bill Staples' Blog: IIS7 Patch for Windows Vista fixes CGI/PHP apps - multiple response headers

Zend Developer Zone: The ZendCon Sessions Episode 27: Security Centered Design

Paul Jones' Blog: Solar 0.27.0 and 0.27.1 Released


Community Events

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


unittest language release api php7 series interview community framework xdebug version extension opinion podcast example introduction library laravel voicesoftheelephpant install

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