PHP Independent of database - How?
Posted by admin (Graham Ellis), 22 July 2002API designers are often in a quandry when they're called on to provide an interface to a number of competing products that each has its own feature set. On one hand, they'll wish to provide good
support for all the products to which they interface, but on the other, they'll want to provide a consistency that leads to portability. This can be achieved by supporting only a common subset of
PHP as standard includes a different API (different functions) to support each of the flavours of relational database that it can be used with, allowing users the maximum of power from each database,
but reducing portability.
Portability can be added by using a wrapper library. There is also an open source wrapper library available, called ADOdb, that's gaining great popularity at present. Many of its conventions are
similar to ADO, so it should be easier for Windows programmers to use too.
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: email@example.com • WEB: http://www.wellho.net • SKYPE: wellho