Click to See Complete Forum and Search --> : 2 different php.ini files (2 Apache/2 IIS)


goa103
05-15-2003, 06:21 AM
Hello,

Server configuration: Apache/IIS, Linux/Windows 2000, PHP4+

A few years ago I developed a PHP application. That time the default PHP configuration file was different. magic_quotes were Off by default. Now that option is set to On. I thought about refactoring the whole application... But it would take me weeks.

A better solution would be to use 2 php.ini files. Our main server runs under Windows 2000 with IIS. We tried to create a new CGI setup: c:\php.exe -c c:\WINNT\php_magic_quotes_off.ini %s %s. But it seems that it ignores our -c directive.

As I am not an Apache expert I don't know what to do. I specially care about our main server (don't ask why Linux is not the main server ^^). I even tried to use a diffent command line: c:\php.exe %s %s -c c:\WINNT\php_magic_quotes_off.ini... Same problem. It keeps escaping our strings :(.

I searched for an answer on Google but it can't take strings like "php -c", it takes - as a special character... Any clue ?

Anyway I hope someone as a solution. Even if it's not for IIS but for Apache.
JM

goa103
05-15-2003, 08:14 AM
Hi again,

I am sure I won't get an answer so here's a solution:
http://www.faqts.com/knowledge_base/view.phtml/aid/15590

JM ~ back to Apache ~