RE: [PHP] Specify php.ini location in windows

From: Date: Tue, 30 Apr 2002 23:27:39 +0000
Subject: RE: [PHP] Specify php.ini location in windows
Groups: php.general 
Request: Send a blank email to php-general+get-95450@lists.php.net to get a copy of this message
Hi, The -c option does not seem to work for me. I saw it in the manual and was the first thing I tried. It just seems to get ignored - The php scripts that are supposed to be working under that directive work just fine... But they use the ini file from c:\winnt Any other ideas? Thanks, /P -----Original Message----- From: Brian McGarvie [mailto:bmcgarvie@lennox-mckinlay.co.uk] Sent: 30 April 2002 17:20 To: Patrick Lynch Subject: RE: [PHP] Specify php.ini location in windows sorry ;) hit send by accident ;) the command line for it is: php.exe -c c:\anotherfolder\php.ini or even: php.exe -c c:\anotherfolder\pfp_for_iis.ini etc etc... hope this helps ;) i use IIS5 also but at the moment only need one .ini... i suggest looking at the above via Properties > Home Directory > Configuration and edit the line for .php? I think that sould work.... lemme know ;) -----Original Message----- From: Patrick Lynch [mailto:Patrick.Lynch@optip.com] Sent: 30 April 2002 17:09 To: 'PHP-GENERAL' Subject: [PHP] Specify php.ini location in windows 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.

« previous php.general (#95450) next »