On Wed, 13 Oct 2004 18:53:42 +0100, Tony Marston wrote:
PHP does not come with a built-in database abstraction layer - and why
should it? You can always try PEAR DB, or there are plenty of other
variations of a Data Access Object (DAO) out there. I know because I have
written one.
I know, Tony, I've checked your site. I might agree that PHP might not need
a built-in abstraction layer for databases, but:
a) There is rumour, coming from none else but Zeev from Zend (who said it
in a brief interview with a local Croatian computer magazine), that PHP 5.1
*will* have one.
b) It it a fact that DALs made as extensions are much faster than pure PHP
ones, as proven by the ADOdb extension.
c) PDO exists (check the link in my post), and if they really plan to
include a build-in DAL it certainly seems like a good candidate.
Personally, I use ADOdb and would prefer if they would choose that, but as
it doesn't seem likely I'd like to hear any opinions on PDO as I haven't
yet used it.
Berislav