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.
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.
Here is a quick example I threw together to extend PDO so you can use 2 seperate database connections.
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...




