Using the mysql API
The classic mysql interface for PHP is a set of functions that map very closely to the C API functions you learned about in Lesson 23, “Using MySQL with C.” To check whether this module is included in your PHP installation, create a simple script that simply contains the following line:
<?php phpinfo();?>
View this script in a web browser and look for a section headed MySQL Support. If this section is not present, you will not be able to use the MySQL commands in PHP, and you will have to recompile PHP to include this module.
Configuring PHP
At compile time, MySQL support is enabled by using the --with-mysql configure switch. ... |
Get Sams Teach Yourself MySQL 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.