php.ini设置没有生效 [英] php.ini settings not taking effect

查看:60
本文介绍了php.ini设置没有生效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是把php.ini-recommended作为php.ini放在我的php

脚本所在的服务器端工作目录中。该文件具有magic_quotes_gpc和magic_quotes_gpc。设置为关闭,但当我在我的php

脚本中使用get_magic_quotes_gpc()进行测试时我发现它被设置为开启。我以为我所要做的就是按照我想要的方式设置

php.ini并在工作目录中找到它。事实证明,我没有

来对php.ini进行任何更改,只是从php.ini-recommended重命名。


任何帮助都会得到赞赏。

谢谢,

Don

I just put up php.ini-recommended as php.ini in the server-side working directory where my php
scripts are located. The file has "magic_quotes_gpc" set to "Off", but when I test it within my php
script using "get_magic_quotes_gpc()" I find it is set to "On". I thought all I had to do was setup
php.ini the way I wanted it and locate it in the working directory. As it turned out, I didn''t have
to make any changes to php.ini, just renamed it from php.ini-recommended.

Any help would be apprecited.
Thanks,
Don

推荐答案

星期四,04 2004年11月16:22:40 -0700,Don< no@adr.com>写道:
On Thu, 04 Nov 2004 16:22:40 -0700, Don <no@adr.com> wrote:
我只是把php.ini-推荐为php.ini,在我的php
脚本所在的服务器端工作目录中。该文件具有magic_quotes_gpc和magic_quotes_gpc。设置为关闭,但当我在我的php
脚本中使用get_magic_quotes_gpc()进行测试时我发现它被设置为开启。我以为我所要做的就是按照我想要的方式设置
php.ini并在工作目录中找到它。事实证明,我没有对php.ini进行任何更改,只是从php.ini-recommended重命名。
I just put up php.ini-recommended as php.ini in the server-side working directory where my php
scripts are located. The file has "magic_quotes_gpc" set to "Off", but when I test it within my php
script using "get_magic_quotes_gpc()" I find it is set to "On". I thought all I had to do was setup
php.ini the way I wanted it and locate it in the working directory. As it turned out, I didn''t have
to make any changes to php.ini, just renamed it from php.ini-recommended.




使用phpinfo()函数转储配置设置,第一个

行之一是PHP实际使用的php.ini的位置。这听起来像是

这不是你修改过的位置。


PHPRC环境变量可以用来告诉PHP哪个目录

查看。默认查看的位置取决于您的平台。


-

Andy Hassall /< an **@andyh.co.uk> /< http://www.andyh.co.uk>

< http://www.andyhsoftware.co.uk/space>空间:磁盘使用情况分析工具



Use the phpinfo() function to dump configuration settings, one of the first
lines is the location of php.ini that PHP is actually using. It sounds like
this isn''t the location you''ve modified.

The PHPRC environment variable can be useful for telling PHP which directory
to look in. The locations it looks in by default depend on your platform.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool


星期五,2004年11月5日00:08:36 +0000,Andy Hassall< an ** @ andyh.co.uk>写道:
On Fri, 05 Nov 2004 00:08:36 +0000, Andy Hassall <an**@andyh.co.uk> wrote:
2004年11月4日星期四16:22:40 -0700,Don< no@adr.com>写道:
On Thu, 04 Nov 2004 16:22:40 -0700, Don <no@adr.com> wrote:
我只是把php.ini-推荐为php.ini,在我的php
脚本所在的服务器端工作目录中。该文件具有magic_quotes_gpc和magic_quotes_gpc。设置为关闭,但当我在我的php
脚本中使用get_magic_quotes_gpc()进行测试时我发现它被设置为开启。我以为我所要做的就是按照我想要的方式设置
php.ini并在工作目录中找到它。事实证明,我没有对php.ini进行任何更改,只是从php.ini-recommended重命名。
I just put up php.ini-recommended as php.ini in the server-side working directory where my php
scripts are located. The file has "magic_quotes_gpc" set to "Off", but when I test it within my php
script using "get_magic_quotes_gpc()" I find it is set to "On". I thought all I had to do was setup
php.ini the way I wanted it and locate it in the working directory. As it turned out, I didn''t have
to make any changes to php.ini, just renamed it from php.ini-recommended.



使用phpinfo( )函数转储配置设置,第一行之一是PHP实际使用的php.ini的位置。听起来好像这不是你修改过的位置。

PHPRC环境变量可以用来告诉PHP查看哪个目录。它默认情况下取决于你的平台。



Use the phpinfo() function to dump configuration settings, one of the first
lines is the location of php.ini that PHP is actually using. It sounds like
this isn''t the location you''ve modified.

The PHPRC environment variable can be useful for telling PHP which directory
to look in. The locations it looks in by default depend on your platform.




感谢您的回复Andy。我明白你在说什么。我该如何设置PHPRC?我猜我会在某种程度上从我的PHP脚本中做到这一点吗?


Don

---- ==发表通过Newsfeeds.Com - 无限制 - 未经审查 - 安全使用网新闻== ----
http: //www.newsfeeds.com 世界排名第一的新闻组服务! > 100,000新闻组

--- =东/西海岸服务器农场 - 通过加密的总隐私= ---



Thanks for your reply Andy. I understand what you''re saying. How do I set PHPRC? I would guess I
would do it from within my php script somehow?

Don
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---


Don写道:
周五,2004年11月5日00:08:36 +0000,Andy Hassall< an ** @ andyh.co.uk>写道:

On Fri, 05 Nov 2004 00:08:36 +0000, Andy Hassall <an**@andyh.co.uk> wrote:

2004年11月4日星期四16:22:40 -0700,Don< no@adr.com>写道:

On Thu, 04 Nov 2004 16:22:40 -0700, Don <no@adr.com> wrote:

我只是将php.ini-推荐为php.ini,位于我的php
脚本所在的服务器端工作目录中。该文件具有magic_quotes_gpc和magic_quotes_gpc。设置为关闭,但当我在我的php
脚本中使用get_magic_quotes_gpc()进行测试时我发现它被设置为开启。我以为我所要做的就是按照我想要的方式设置
php.ini并在工作目录中找到它。事实证明,我没有对php.ini进行任何更改,只是从php.ini-recommended重命名。
I just put up php.ini-recommended as php.ini in the server-side working directory where my php
scripts are located. The file has "magic_quotes_gpc" set to "Off", but when I test it within my php
script using "get_magic_quotes_gpc()" I find it is set to "On". I thought all I had to do was setup
php.ini the way I wanted it and locate it in the working directory. As it turned out, I didn''t have
to make any changes to php.ini, just renamed it from php.ini-recommended.



使用phpinfo( )函数转储配置设置,第一行之一是PHP实际使用的php.ini的位置。听起来好像这不是你修改过的位置。

PHPRC环境变量可以用来告诉PHP查看哪个目录。它默认情况下取决于你的平台。



Use the phpinfo() function to dump configuration settings, one of the first
lines is the location of php.ini that PHP is actually using. It sounds like
this isn''t the location you''ve modified.

The PHPRC environment variable can be useful for telling PHP which directory
to look in. The locations it looks in by default depend on your platform.



感谢您的回复Andy。我明白你在说什么。我该如何设置PHPRC?我想我会以某种方式从我的PHP脚本中做到这一点吗?

Don


Thanks for your reply Andy. I understand what you''re saying. How do I set PHPRC? I would guess I
would do it from within my php script somehow?

Don



您使用什么平台?


史蒂夫


What platform are you using?

Steve


这篇关于php.ini设置没有生效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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