Integration Solution of php and mysql5.5

Source: Internet
Author: User
Php and mysql5.5 integration php. ini: extension_dir & quot; C: phpenvphp-5.2ext & quot; extensionphp_mysql.dllextensionphp_mysqli.dllextensionphp_bz2.dllextensionphp_gd2.dllphp File: & lt ;? Php $ l integration of php and mysql5.5
Php. ini:
Extension_dir = "C:/PHP/php-5.2/ext"
Extension = php_mysql.dll
Extension = php_mysqli.dll
Extension = php_bz2.dll
Extension = php_gd2.dll

Php file:
$ Link = mysql_connect ('localhost', 'root', 'root ');
If (! $ Link ){
Die ('could not connect: '. mysql_error ());
}
Echo 'ccted successfully ';
Mysql_close ($ link );
?>


Apache error. log:
PHP Fatal error: Call to undefined function mysql_connect () in C :\\ phpenv \ Apache2.2 \ htdocs \ testmysql. php on line 2

What is going on?

------ Solution --------------------
Phpinfo ();
Check whether the php. ini path is a modified file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.