PDO PHP Data Objects Interface wez Wez Furlong wez@php.net lead helly Marcus Boerger helly@php.net lead iliaa Ilia Alshanetsky iliaa@php.net lead gschlossnagle George Schlossnagle george@omniti.com lead PDO provides a uniform data access interface, sporting advanced features such as prepared statements and bound parameters. PDO drivers are dynamically loadable and may be developed independently from the core, but still accessed using the same API. Read the documentation at http://www.php.net/pdo for more information. PHP beta 1.1dev 2005-09-11 You need to install a PDO database driver to make use of PDO, check http://pecl.php.net/package-search.php?pkg_name=PDO for a list of available PDO drivers. It is highly recommended that you update to the latest stable PHP 5 snapshot before using PDO. You can obtain it from http://snaps.php.net. If you are running on Windows, you should download: http://snaps.php.net/win32/php5.0-win32-latest.zip http://snaps.php.net/win32/PECL_5_0/php_pdo.dll You can find additional PDO drivers at: http://snaps.php.net/win32/PECL_5_0/ - Consult the PHP 5.1b3 release notes and http://netevil.org/node.php?nid=325 for more recent changes. - New fetch modes: PDO_FETCH_FUNC, PDO_FETCH_GROUP, PDO_FETCH_UNIQUE, PDO_FETCH_CLASSTYPE - New fetch mode for PHP 5.1 and higher: PDO_FETCH_SERIALIZE - Changed signature for PDO::lastInsertId(); it is now: string PDO::lastInsertId([string name]) this allows arbitrary unique identifiers to be returned, and allows for better support for RDBMS with sequences. - Improved bound parameter emulation when using non-string types. - PDOStatement implements SPL Traversable interface when SPL is present. - Added PDO::quote($string). Closes PECL Bug #3393 - Fixed PDO::query() for drivers using bound parameter emulation. - Fixed PECL Bug #3434, crash when using odbc with named parameters. - Added PDOStatement::fetchObject(string class_name [, NULL|array ctor_args]]) - PDO_FETCH_CLASS now passes args through to the class constructor - Now builds directly via "pear install PDO" (upgrade to PEAR 1.3.5 first) ** Note ** You should uninstall and re-install your individual database drivers whenever you upgrade the base PDO package, otherwise you will see an error about PDO API numbers when you run your PHP scripts.