关于 PHP 的数据库 API 对于不同的数据库有不同的函数,一直以来就有人尝试使用 PHP 的面向对象的功能进行一些封装。其中有比较著名的ADODB,PHPLIB。后来举世瞩目的 PEAR 项目中的 PEAR DB 更是其中的佼佼者。作者就是 MDB 的主创人员。想获得我最近关注的 PHP/PEAR 的最新原创和译文,请访问我的主页 Write once - run anywherePEAR MDB Database Abstraction Layer作者:Lukas SmithWhile this is a Java marketing phrase it is also a key feature of PHP. Many business models depend on operation system independence to ensure that products can be sold to a wide range of customers. So why lock yourself in with a specific database vendor?This article will give a good introduction to the database abstraction package PEAR MDB. The focus will be explaining the more advanced features of MDB like data type abstraction and the XML based schema management that go beyond what other similar packages offer. A basic level of understanding of PHP and SQL is recommended. Why another database class?Back in fall 2001, I was looking for a database abstraction package that would make my companies application framework RDBMS independent. The goal was to reduce database specific code to zero. The only package I found that offered such features was Metabase. But Metabase had a somewhat uncomfortable API that was partly

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行

一次编写,随处运行