Home  >  Article  >  php教程  >  php添加mysql模块弹出警告的解决

php添加mysql模块弹出警告的解决

WBOY
WBOYOriginal
2016-06-13 10:48:09913browse

运行环境

apache2.2.22

php5.4

在配置php打开mysql的模块时,直接解注释了两行代码如下

[plain] extension=php_mysql.dll 
extension=php_mysqli.dll 
然后重启apache,结果弹出提示框【phpstartup】

然后检查extension_dir的值为

 extension_dir = "ext"

此值在windows下不能直接读取,现在尝试将其改为

[plain] extension_dir = "./ext" 
重启apache,报错仍然是一样,干脆一不做二不休,改为绝对路径看看!

[plain] extension_dir = "D:/www/php54/ext" 
重启apache,一切OK

分析,其实我们在用的时候php配置文件上有注释说windows下只需要把这个目录设置为"ext"即可,但是不行,改为绝对路径就没问题了


摘自 后天雨街的专栏 
摘自   

Statement:
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