php.ini设置问题 [英] php.ini set up problem

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

问题描述




我是PHP新手我遇到php.ini问题。我在XP中使用IIS工作
,并将PHP作为ISAPI安装。我想在我的php环境中更改

值,例如''upload_tmp_dir'',

''upload_max_filesize''。我扫描了我的电脑,机器上唯一的php.ini

文件位于C:\Program Files \ PHP。如果我在

中更改了php.ini文件并运行phpinfo()的条目,那么值似乎不会更新。我启动和停止IIS服务器后仍然如此。


另外phpinfo()报告我的php.ini文件的路径是c:\ windows,

但该目录中没有php.ini文件。如果我将php.ini

文件复制到c:\ windows并重启服务器,那么php会中断。我不能运行甚至像phpinfo()或echoing这样的简单脚本。但是,如果我只是将
更改为xphp.ini之类的文件名,那么php将

再次开始工作。


Q1:如果没有来自php.ini,php会从哪里得到它的初始ini数据


Q2:为什么在我将php.ini文件复制到目录时php会中断

请求路径。


谢谢

Mike

解决方案

< blockquote> mike写道:





我是非常新的PHP我有php.ini问题。我在XP中使用IIS工作
,并将PHP作为ISAPI安装。我想在我的php环境中更改

值,例如''upload_tmp_dir'',

''upload_max_filesize''。我扫描了我的电脑,机器上唯一的php.ini

文件位于C:\Program Files \ PHP。如果我在

中更改了php.ini文件并运行phpinfo()的条目,那么值似乎不会更新。我启动和停止IIS服务器后仍然如此。


另外phpinfo()报告我的php.ini文件的路径是c:\ windows,

但该目录中没有php.ini文件。如果我将php.ini

文件复制到c:\ windows并重启服务器,那么php会中断。我不能运行甚至像phpinfo()或echoing这样的简单脚本。但是,如果我只是将
更改为xphp.ini之类的文件名,那么php将

再次开始工作。


Q1:如果没有来自php.ini,php会从哪里得到它的初始ini数据


Q2:为什么在我将php.ini文件复制到目录时php会中断

请求路径。


谢谢

Mike



仍在尝试, Mike?


正如我之前告诉过的那样 - 如果PHP找不到一个

php.ini文件,它会使用默认值。现在最简单的方法是在c:\windows目录中放置一个php.ini文件

,然后重新启动IIS。


如果你不打算遵循建议,为什么还要问?


-

========= =========

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================


Jerry Stuckle写道:


mike写道:


>

我是PHP新手我有php.ini问题。我在XP中使用IIS工作,并将PHP作为ISAPI安装。我想在我的php环境中更改
值,例如''upload_tmp_dir'',
''upload_max_filesize''。我扫描了我的电脑,机器上唯一的php.ini
文件位于C:\Program Files \ PHP。如果我更改
php.ini文件中的条目并运行phpinfo(),则表明值不会更新。在我启动和停止IIS服务器之后,这仍然是正确的。

phpinfo()报告我的php.ini文件的路径是c:\ windows,
但该目录中没有php.ini文件。如果我将php.ini
文件复制到c:\ windows并重启服务器,那么php会中断。我无法运行像phpinfo()或echoing这样的简单脚本。但是,如果我只是将文件名更改为类似xphp.ini,那么php将会再次开始工作。

Q1:如果php获取其初始ini数据,不是来自php.ini

Q2:当我将php.ini文件复制到其路径中请求的目录时,为什么php会中断。

谢谢
Mike



还在尝试,迈克?


正如我之前告诉你的那样 - PHP有默认值,如果它找不到一个

php.ini文件。现在最简单的方法是在c:\windows目录中放置一个php.ini文件

,然后重新启动IIS。


如果你不打算遵循建议,你为什么要问?



对不起,你有这么糟糕的一天杰里,妻子再也不给你了?


如果你不想看帖子为什么回答?


mike写道:


Jerry Stuckle写道:


> mike写道:


>>

我是PHP的新手我有php.ini问题。我在XP中使用IIS工作,并将PHP作为ISAPI安装。我想在我的php环境中更改
值,例如''upload_tmp_dir'',
''upload_max_filesize''。我扫描了我的电脑,机器上唯一的
php.ini文件位于C:\Program Files \ PHP。如果我在php.ini文件中更改了
条目并运行phpinfo(),则表明
值没有得到更新。在我启动并停止IIS服务器后仍然如此。

phpinfo()报告我的php.ini文件路径是c:\ windows,
但该目录中没有php.ini文件。如果我将php.ini
文件复制到c:\ windows并重启服务器,那么php会中断。我无法运行像phpinfo()或echoing这样的简单脚本。但是,如果我只是将文件名更改为类似xphp.ini,那么php将会再次开始工作。

Q1:如果php获取其初始ini数据,不是来自php.ini

Q2:当我将php.ini文件复制到其路径中请求的目录时,为什么php会中断。

谢谢


仍然在尝试,迈克?

正如我之前告诉过的那样 - 如果找不到它,它会使用默认值
一个php.ini文件。现在最简单的方法是在c:\windows目录中放置一个包含所需值的php.ini
文件,然后重新启动IIS。

如果你我不打算遵循建议,你为什么要问?



对不起你有这么糟糕的一天杰里,妻子不再给你了?


如果您不打算阅读帖子,为什么要回答?



我确实阅读了你的帖子。我回答说。但是你没有接受这个建议。


-

==================

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================


Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like ''upload_tmp_dir'',
''upload_max_filesize''. I have scanned my computer and the only php.ini
file on the machine is in C:\Program Files\PHP. If I change entries in
that php.ini file and run phpinfo() it appears that the values are not
getting updated. This is still true after I start and stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks. I can not
run even simple scripts like phpinfo() or echoing. However if I just
change the name of the file to something like xphp.ini then php will
start working again.

Q1: where does php get its initial ini data if not from php.ini

Q2: why does php break when I copy the php.ini file to the directory
requested in its path.

Thanks
Mike

解决方案

mike wrote:

Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like ''upload_tmp_dir'',
''upload_max_filesize''. I have scanned my computer and the only php.ini
file on the machine is in C:\Program Files\PHP. If I change entries in
that php.ini file and run phpinfo() it appears that the values are not
getting updated. This is still true after I start and stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks. I can not
run even simple scripts like phpinfo() or echoing. However if I just
change the name of the file to something like xphp.ini then php will
start working again.

Q1: where does php get its initial ini data if not from php.ini

Q2: why does php break when I copy the php.ini file to the directory
requested in its path.

Thanks
Mike

Still trying, Mike?

As I told you before - PHP has default values it uses if it can''t find a
php.ini file. The easiest way for right now is to place a php.ini file
with the values you want in your c:\windows directory, then restart IIS.

If you''re not going to follow suggestions, why do you even ask?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


Jerry Stuckle wrote:

mike wrote:

>Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like ''upload_tmp_dir'',
''upload_max_filesize''. I have scanned my computer and the only php.ini
file on the machine is in C:\Program Files\PHP. If I change entries in
that php.ini file and run phpinfo() it appears that the values are not
getting updated. This is still true after I start and stop the IIS
server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks. I can not
run even simple scripts like phpinfo() or echoing. However if I just
change the name of the file to something like xphp.ini then php will
start working again.

Q1: where does php get its initial ini data if not from php.ini

Q2: why does php break when I copy the php.ini file to the directory
requested in its path.

Thanks
Mike


Still trying, Mike?

As I told you before - PHP has default values it uses if it can''t find a
php.ini file. The easiest way for right now is to place a php.ini file
with the values you want in your c:\windows directory, then restart IIS.

If you''re not going to follow suggestions, why do you even ask?

Sorry your have such a bad day jerry, wife not giving you any again?

If your not going to read the posts why answer?


mike wrote:

Jerry Stuckle wrote:

>mike wrote:

>>Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like ''upload_tmp_dir'',
''upload_max_filesize''. I have scanned my computer and the only
php.ini file on the machine is in C:\Program Files\PHP. If I change
entries in that php.ini file and run phpinfo() it appears that the
values are not getting updated. This is still true after I start and
stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks. I can not
run even simple scripts like phpinfo() or echoing. However if I just
change the name of the file to something like xphp.ini then php will
start working again.

Q1: where does php get its initial ini data if not from php.ini

Q2: why does php break when I copy the php.ini file to the directory
requested in its path.

Thanks
Mike


Still trying, Mike?

As I told you before - PHP has default values it uses if it can''t find
a php.ini file. The easiest way for right now is to place a php.ini
file with the values you want in your c:\windows directory, then
restart IIS.

If you''re not going to follow suggestions, why do you even ask?


Sorry your have such a bad day jerry, wife not giving you any again?

If your not going to read the posts why answer?

I did read your posts. And I answered. But you aren''t taking the advice.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


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

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