Home > Backend Development > PHP Tutorial > Solution to pop-up warning when adding mysql module in php_PHP tutorial

Solution to pop-up warning when adding mysql module in php_PHP tutorial

WBOY
Release: 2016-07-13 17:49:45
Original
978 people have browsed it

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
Excerpted from

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478331.htmlTechArticleRunning environment apache2.2.22 php5.4 When configuring php to open the mysql module, two lines of code are directly commented out As follows [plain] extension=php_mysql.dll extension=php_mysqli.dll and then restart apa...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template