Specify php.ini location in windows
| From: | Patrick Lynch | Date: | Tue, 30 Apr 2002 16:09:27 +0000 |
| Subject: | Specify php.ini location in windows | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95389@lists.php.net to get a copy of this message | ||
Hi,
I am having a small problem with PHP/Windows.
[config]
Windows 2000 Server
IIS 5
PHP 4.0.6
I have a server with a php.ini in the c:\winnt directory and a site
running fine with that configuration.
I need to set up a new site, using a different php.ini. The new site is
set up in IIS but I cannot find a way to make PHP look to a different
php.ini other than the one in c:\winnt.
I have tried using the -c command line option in the app mappings
section but to no avail. Here is what I have in the executable text box:
C:\Inetpub\php\php.exe -c z:\Dir\With\Other\IniFile %s %s
PHP pages execute fine but a page with phpinfo() shows that php is still
reading the file from c:\winnt\php.ini
Any ideas?
Thanks in advance,
Patrick.