这个php.ini文件到底在哪里? [英] where the heck is this php.ini file anyways?

查看:82
本文介绍了这个php.ini文件到底在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用phpMyAdmin在Yahoo上运行php vs. 4.1.14. 它说该文件位于/usr/lib/php/php4.ini,但我在任何地方都找不到. 它在phpMyAdmin文件夹中吗?我真的需要找到这个,并尽快将其变成magic_quotes,否则我要去邮政了.谢谢.

I'm running php vs. 4.1.14 on yahoo with phpMyAdmin. it says the file is at /usr/lib/php/php4.ini but I can't find this anywhere. Is it in the phpMyAdmin folder? I really need to find this and turn of magic_quotes soon or I'm gonna go postal. Thanks.

好吧,我想还不清楚.我做了phpinfo().我不知道如何在服务器上找到该位置.

Okay So i guess It wasn't that clear. I did phpinfo(). I don't know how to find that location on the server.....

推荐答案

通过phpinfo可以很容易地在专用服务器上找到php.ini(正如其他人所说的那样)

Finding php.ini on a dedicated server can be done easily by phpinfo (as others said)

但是我认为您使用的是共享主机环境(因此您无法编辑php.ini),实际上需要关闭magic_quotes_gpc. (我对吗?) 如果是这样,只需在Web根目录(或phpMyAdmin根目录)中创建一个名为.htaccess的文件,然后在其中添加以下行即可.

But I think you're using a shared hosting environment (so you can not edit php.ini) and actually need to turn off magic_quotes_gpc. (Am I right?) If so, simply create a file named .htaccess in the web root (or phpMyAdmin root) and put the following line in that.

php_flag magic_quotes_gpc off  

希望能提供帮助:-)

这篇关于这个php.ini文件到底在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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