Badea Sorin
Badea Sorin

Reputation: 174

How can I connect to all types of databases using php?

I have a little question. I am looking for a mode to connect to all types of databases using php and I don't find anything usefull. For example I am developing a platform and it will be on all kinds of databases like Mysql or PostgreSQL or others.

Upvotes: 1

Views: 723

Answers (4)

chchrist
chchrist

Reputation: 19812

You could also try Doctrine

Upvotes: 1

Nick ODell
Nick ODell

Reputation: 25289

Database protocols don't have a standard like HTTP does. To create something like this, you would need to create an implementation for every database. Given the number and diversity of them, this would be very difficult.

Upvotes: 0

Phil
Phil

Reputation: 164832

PHP's PDO extension has many drivers though some (Oracle for example) are marked experimental.

The database adapter class in Zend Framework does a particularly good job at abstracting connection details.

Upvotes: 4

Petah
Petah

Reputation: 46050

Use and abstract database library such as http://adodb.sourceforge.net/

Upvotes: 1

Related Questions