Home >Backend Development >PHP Tutorial >Solution to pop-up warning when adding mysql module in php_PHP tutorial
Operating environment
apache2.2.22
php5.4
When configuring PHP to open the mysql module, directly comment out the two lines of code as follows
[plain] extension=php_mysql.dll
extension=php_mysqli.dll
Then restart apache, and the prompt box [phpstartup] will pop up
Then check the value of extension_dir is
extension_dir = "ext"
This value cannot be read directly under Windows. Now try to change it to
[plain] extension_dir = "./ext"
Restart apache, the error is still the same, so I just don’t do anything and change it to an absolute path to see!
[plain] extension_dir = "D:/www/php54/ext"
Restart apache, everything is OK
Analysis, in fact, when we were using it, there was a comment on the php configuration file that said that under Windows, we only need to set this directory to "ext", but it didn't work. Changing it to an absolute path would be fine
Excerpted from the column of Houtian Yujie