在Windows服务器上使用自定义PHP.ini时,不会加载MySQL函数 [英] MySQL functions don't load when using custom PHP.ini on windows server

查看:137
本文介绍了在Windows服务器上使用自定义PHP.ini时,不会加载MySQL函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

服务器上的php.ini加载mysql函数,但是因为我必须在站点根上使用自定义php.ini,所以在添加文件后服务器不加载mysql函数。

没有自定义的php5.ini文件mysql函数和它们的值出现在phpinfo()中,但是当我在站点根目录上创建自定义php5.ini并运行phpinfo ()mysql函数及其值不会出现在该页面上?



需要帮助。感谢。

解决方案

你的意思是mysql函数及其值不会出现在[phpinfo()]中? / p>

我知道mysql函数是什么 - 但它们在任何时候都不会出现在phpinfo()中。函数值...?你的意思是与MySQL相关的ini设置?如果是这样,那么你可能没有在ini文件中声明mysql扩展。



类似...

  extension_dir =C:/ php5 / ext /
extension = php_mysql.dll

适用于MSWindows。对于其他所有内容,如:

  extension_dir =/ usr / lib / php / modules /
extension = mysql.so

HTH



C。

php.ini on the server loads mysql functions, but as i have to use a custom php.ini on the site root, after adding the file the server is not loading mysql function.

without the custom php5.ini file mysql functions and their values appear in the phpinfo() but when i create the custom php5.ini on the site root and run the phpinfo() mysql functions and their values do not appear on that page?

Need help. thanks.

解决方案

What do you mean by "mysql functions and their values do not appear [in phpinfo()]"?

I know what mysql functions are - but they don't appear in phpinfo() at any time. Function values...? Do you mean the mysql related ini settings? If so then you've probably not declared the mysql extension in the ini file.

Something like...

extension_dir="C:/php5/ext/"
extension=php_mysql.dll

for MSWindows. For everything else, something like:

extension_dir="/usr/lib/php/modules/"
extension=mysql.so

HTH

C.

这篇关于在Windows服务器上使用自定义PHP.ini时,不会加载MySQL函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆