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 app MySQL Security (Pt. 2)
Aug 03, 2005 @ 10:39:14

Cyberlot's weblog has a new post on it today with part two of his "Using scalability to improve your PHP applications MySQL security" series.

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 just the code without anything in the way of explaination, so you'll need to know a bit about PDO to get things working completely, but it's a nice, clean method for accessing two different sources...

tagged:

Link:


Trending Topics: