| CARVIEW |
The world's most popular open source database
- Documentation Library
- Table of Contents
- MySQL 6.0 Reference Manual
- MySQL 5.1 Reference Manual
- MySQL 5.0 Reference Manual
- MySQL 3.23/4.0/4.1 Manual
- Table of Contents
- 21 Connectors and APIs
- 21.1 MySQL Connector/ODBC
- 21.2 MySQL Connector/NET
- 21.3 MySQL Visual Studio Plugin
- 21.4 MySQL Connector/J
- 21.5 MySQL Connector/MXJ
- 21.6 MySQL Connector/C++
- 21.7 MySQL Connector/OpenOffice.org
- 21.8 libmysqld, the Embedded MySQL Server Library
- 21.9 MySQL C API
- 21.10 MySQL PHP API
- 21.11 MySQL Perl API
- 21.12 MySQL C++ API
- 21.13 MySQL Python API
- 21.14 MySQL Ruby APIs
- 21.15 MySQL Tcl API
- 21.16 MySQL Eiffel Wrapper
[+/-]
PHP 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 the Apache Web server.
PHP actually provides two different MySQL API extensions:
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. If you wish to use this extension with MySQL 4.1, you will likely want to configure the MySQL server to use the --old-passwords option (see Section B.1.2.4, “Client does not support authentication protocol”). This extension is documented on the PHP Web site at https://php.net/mysql.Section 21.10.2, “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. You can read the documentation for themysqliextension at https://php.net/mysqli. Helpful article can be found at https://devzone.zend.com/node/view/id/686 and https://devzone.zend.com/node/view/id/687.
If you're experiencing problems with enabling both the
mysql and the mysqli extension
when building PHP on Linux yourself, see
Section 21.10.6, “Enabling Both mysql and mysqli in
PHP”.
The PHP distribution and documentation are available from the PHP Web site.
MySQL Enterprise. MySQL Enterprise subscribers will find more information about MySQL and PHP in the Knowledge Base articles found at PHP. Access to the MySQL Knowledge Base collection of articles is one of the advantages of subscribing to MySQL Enterprise. For more information, see https://www.mysql.com/products/enterprise/knowledgebase.html.
Portions of this section are Copyright (c) 1997-2008 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 https://www.opencontent.org/openpub/).


User Comments
Add your own comment.