[+/-]
Mysql)Mysqli)MySQL (PDO))Mysqlnd)mysqlnd_ms)mysqlnd_qc)mysqlnd_uh)mysql and mysqli in
PHPPHP is a server-side, HTML-embedded scripting language that may be used to create dynamic Web pages. It is available for most operating systems and Web servers, and can access most common databases, including MySQL. PHP may be run as a separate program or compiled as a module for use with a Web server.
PHP provides three different MySQL API extensions:
Section 21.9.3, “MySQL Improved Extension (Mysqli)” - Stands for “MySQL,
Improved”; this extension is available only in PHP 5. It
is intended for use with MySQL 4.1.1 and later. This extension
fully supports the authentication protocol used in MySQL 5.0, as
well as the Prepared Statements and Multiple Statements APIs. In
addition, this extension provides an advanced, object-oriented
programming interface.
Section 21.9.4, “MySQL Functions (PDO_MYSQL) (MySQL (PDO))” Not its own API, but
instead it's a MySQL driver for the PHP database abstraction
layer PDO (PHP Data Objects). The PDO MySQL driver sits in the
layer below PDO itself, and provides MySQL-specific
functionality. This extension is available as of PHP 5.1.
Section 21.9.2, “Original MySQL API (Mysql)”: Available for PHP versions 4
and 5, this extension is intended for use with MySQL versions
prior to MySQL 4.1. This extension does not support the improved
authentication protocol used in MySQL 4.1, nor does it support
prepared statements or multiple statements. To use this
extension with MySQL 4.1, you will likely configure the MySQL
server to use the --old-passwords
option (see Section C.5.2.4, “Client does not support authentication protocol”).
The PHP distribution and documentation are available from the PHP Web site.
Portions of this section are Copyright (c) 1997-2012 the PHP Documentation Group This material may be distributed only subject to the terms and conditions set forth in the Creative Commons Attribution 3.0 License or later. A copy of the Creative Commons Attribution 3.0 license is distributed with this manual. The latest version is presently available at This material may be distributed only subject to the terms and conditio\ ns set forth in the Open Publication License, v1.0.8 or later (the latest version is presently available at http://www.opencontent.org/openpub/).

User Comments
Add your own comment.