News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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!
php scalability pdo application security php scalability pdo application security



Similar Posts

NetCraft.com: PHP Apps A Growing Target for Hackers

Tobias Schlitt\'s Blog: eZ components talk at PHP usergroup Frankfurt

CodeSnipers.com: More Stupidly Easy MVC in PHP

Justin Silverton\'s Blog: Free RSS to HTML PHP script

Chris Shiflett\'s Blog: Zend Framework Update


Community Events









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


release releases package cakephp PHP5 code example book conference mysql job application zend framework PEAR security ajax zendframework developer database

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