| Warning |
|
This extension is EXPERIMENTAL. The behaviour of this extension -- including the names of its functions and anything else documented about
this extension -- may change without notice in a future release of PHP. Use this extension at your own risk.
|
The PHP Data Objects (PDO) extension defines a lightweight, consistent interface for accessing databases in PHP. Each database driver that implements the PDO interface can expose database-specific
features as regular extension functions. Note that you cannot perform any database functions using the PDO extension by itself; you must use a
database-specific PDO
driver to access a database server.
PDO is currently available as a PECL extension from http://pecl.php.net/package/pdo. Ensure you have installed the CGI version of PHP
and that the pear and phpize scripts are available in your current path.
Run the following command to download, build, and install the latest stable version of PDO:
Windows users can download the extension DLL php_pdo.dll as part of the PECL collection binaries from http://www.php.net/downloads.php.
The pear command automatically installs the PDO module into your PHP extensions directory. To enable the PDO extension on Linux or Unix operating systems, you must add the
following line to php.ini:
To enable the PDO extension on Windows operating systems, you must add the following line to
php.ini: