PHP.INI ...

PHP.INI ...

问题描述:

具体来说,如何告诉Apache或PHP使用什么php.ini文件?我通过定义一个环境来告诉Apache / PHP在哪里找到php.ini.
变量PHPRC到指定的目录,其中有一个php.ini文件。 />

如何告诉Apache / PHP使用例如c:\ php \ php4.ini或c:\ php \ php5.ini?


谢谢

How do you tell Apache or PHP of what php.ini file to use, specifically? I
manage to tell Apache/PHP where to find php.ini by defining an environment
variable PHPRC to a specified directory where there is a php.ini file.

How do I tell Apache/PHP to use e.g c:\php\php4.ini or c:\php\php5.ini?

Thanks

2004年3月25日星期四13:59:46 -0500,Ruby Tuesdays

< No ********************** @ yahoo.com>写道:
On Thu, 25 Mar 2004 13:59:46 -0500, "Ruby Tuesdays"
<No**********************@yahoo.com> wrote:
你如何告诉Apache或PHP使用什么php.ini文件?我设法告诉Apache / PHP在哪里找到php.ini,通过定义一个环境变量PHPRC到指定的目录,其中有一个php.ini文件。

怎么做我告诉Apache / PHP使用例如c:\ php \ php.4.ini或c:\ php \ php5.ini?

谢谢
How do you tell Apache or PHP of what php.ini file to use, specifically? I
manage to tell Apache/PHP where to find php.ini by defining an environment
variable PHPRC to a specified directory where there is a php.ini file.

How do I tell Apache/PHP to use e.g c:\php\php4.ini or c:\php\php5.ini?

Thanks



设置环境变量PHPRC应该这样做。


Steve


Setting up the environment variable PHPRC should do it.

Steve


我做了但它只是你的目录'重新设定。文件名必须是

php.ini。假设您在同一台服务器上运行了2个php instace,例如
一个用Apache(运行php5),另一个用IIS(运行php4)。谢谢
I did but it''s just the directory you''re setting. The filename has to be
php.ini. Suppose that you have 2 php instace running on the same server e.g
one with Apache(running php5) and the other with IIS(running php4). Thanks


Uzytkownik" Ruby Tuesdays" &LT;否********************** @ yahoo.com&GT; napisal w

wiadomosci新闻:c3 ************* @ ID-205437.news.uni-berlin.de ...
Uzytkownik "Ruby Tuesdays" <No**********************@yahoo.com> napisal w
wiadomosci news:c3*************@ID-205437.news.uni-berlin.de...
你如何告诉Apache或PHP使用什么php.ini文件?我设法告诉Apache / PHP在哪里找到php.ini,通过定义一个环境变量PHPRC到指定的目录,其中有一个php.ini文件。

怎么做我告诉Apache / PHP使用例如c:\ _ \\ _php \ php4.ini或c:\ php \ php5.ini?
How do you tell Apache or PHP of what php.ini file to use, specifically? I
manage to tell Apache/PHP where to find php.ini by defining an environment
variable PHPRC to a specified directory where there is a php.ini file.

How do I tell Apache/PHP to use e.g c:\php\php4.ini or c:\php\php5.ini?




重命名php。用于Apache的fori到php-apache.ini,用于IIS的用于

php-isapi.ini。



Rename the php.ini for Apache to php-apache.ini and the one for IIS to
php-isapi.ini.