Beneath the Abstraction

To use the DBA functions, you need to have one of the supported database systems installed. If you are running Linux, you probably have the GNU Database Manager (GDBM) installed. For each system, there is a corresponding compile option that should have been used when PHP was installed. You can see the supported databases and their corresponding compile options in Table 12.1.

Table 12.1. DBM Systems Supported by the DBA Functions
TypeCompile OptionFurther Information
cdbm--with-cdbmRead-only database system
cdb--with-cdbRead/write when bundled version is used; no updates allowed
db2--with-db2http://www.sleepycat.com/
db3--with-db3http://www.sleepycat.com/
db4--with-db4http://www.sleepycat.com/ (since PHP 5)
dbm--with-dbmThe original ...

Get Sams Teach Yourself PHP in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.