Beginner's problem: I cannot find mysqli extension for beginners under WIN7. in WIN7, an error occurs when I log on to phpMyAdmin: The & nbsp; mysqli & nbsp; extension is missing. When mysqli_connect & nbsp; is called in the PHP script, the following error occurs: Fatal & nbsp novice problem: mysqli extension cannot be found in WIN7.
Beginner php,
In WIN7, an error occurs when you log on to phpMyAdmin: the mysqli extension is missing. When mysqli_connect is called in a PHP script, an error is reported:
Fatal error: Call to undefined function mysqli_connect () in xxxx on line xxxx
In this case, the extension cannot be found, right? However, I have already opened extension = php_mysql.dll and extension = php_mysqli.dll, and added the environment variables to the directories where these two DLL are located.
It is strange that I can run successfully in the same environment in XP. What's going on? Ask.
My Environment: OS WIN7 flagship edition, PHP Version 5.2.17, Apache 2.0, MYSQL Version 5.5.29 extension php phpmyadmin extension
------ Solution --------------------
I also encountered this problem. I solved it yesterday.
Copy the libmysql. dll and php. ini files to the C:/Windows directory,
If not, copy it to the C:/Windows/System32 directory.
------ Solution --------------------
In this case, you should write in apache http. conf
SetEnv PHPRC "path/PHP5 /"
PHPINIDir "path/PHP5/php. ini"
At the same time, you should set the extension storage path in php. ini.
In this way, you do not need to copy to the win directory.
Reference:
I also encountered this problem. I solved it yesterday.
Copy the libmysql. dll and php. ini files to the C:/Windows directory,
If not, copy it to the C:/Windows/System32 directory.