DBX—PHP Support for Multiple Databases

For applications that don't require complex database-specific queries, you can use PHP's built-in DBX functions.

Before you can use the DBX functions, you must enable support at compile time if you are using Linux or enable the DBX module if you are using Windows.

Enabling DBX in Linux

If you compiled PHP using Apache's APXS functionality (compile --with-apxs=/path/to/apache/bin/apxs), then adding functionality to the PHP module is a breeze.

Before recompiling PHP, I first suggest that you delete the config.cache file and clean up files left over from the previous compile. This can be done like this:

cd /path/to/php/source 
rm config.cache
make clean

After you issue the make clean command, you will notice ...

Get Advanced PHP for Web Professionals 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.