我的 php.ini 文件中有以下两个
extension=php_mysql.dll extension=php_mysqli.dll
从php.info()中可以看到下面是正确的。
Loaded Configuration File C:\Program Files (x86)\PHP\v5.3\php.ini
我只安装了一个版本的 php。
我还应该尝试什么?
奇怪的是,如果我加载我的应用程序,错误是
Fatal error: Call to undefined function mysql_connect()
但是如果我加载 phpMyAdmin,登录后错误是
The mysqli extension is missing. Please check your PHP configuration.
<a href="Documentation.html#faqmysql" target="documentation"><img class="icon" src="./themes/pmahomme/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" /></a>
最佳答案
确保 php.ini 的路径已设置并且在以下位置可见 在加载的配置文件中。
如果您使用的是 Windows..请确保使用/和\ 在 Apache httpd.conf 中 它应该是 PHPIniDir "C:/php/5.5/"
关于php - fatal error : Call to undefined function mysql_connect() and The mysqli extension is missing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27527731/