lubo999x
02-24-2003, 04:41 AM
Hi!
I have 2 php applications on my server (NT 4.0, IIS 4.0, PhP 4.0.6). Each one needs different configuration.
(Different setting of register_globals. I know I can solve it programaticaly, changing app so that it will not require register_globlas, but I want do it by changing configuration of php.)
I want to configure php in each virtual directory (server/app1; server/app2) to use different settings. I found out that -c parameter specifies from which dir php will load php.ini file.
BUT, I tried -c parameter from command line & from IIS and both didn't work. Parameter was simply IGNORED!
(I tried:
c:\php\php.exe -c c:\php e:\appdir\index.php
c:\php\php.exe -c c:\php\ e:\appdir\index.php
c:\php\php.exe -c c:\php\php.ini e:\appdir\index.php
)
Then I use parameter -d to specify at least that one different parameter. It worked form command line, but not form IIS!
In IIS when you open _properties_ of virtual directory, and then _edit_ in right bottom side you see configuration of running PhP script engine through CGI. There should be "c:\php\php.exe %s %s" for extension ".php".
(I tried:
c:\php\php.exe -c c:\php %s %s
c:\php\php.exe -c c:\php
c:\php\php.exe -c c:\php\php.ini %s %s
c:\php\php.exe -c c:\php\php.ini
c:\php\php.exe -d register_globals=off %s %s
c:\php\php.exe -d register_globals=off
... and others
)
With NO RESULT! Everything is IGNORED!
Then I tried even "c:\php\php.exe fsfkjsd fsdfksjf asfsfkas fasdkfasdf fdsfj". No result => no error message, no change!
Can anyone help me with this?
Thanx in advance.
I have 2 php applications on my server (NT 4.0, IIS 4.0, PhP 4.0.6). Each one needs different configuration.
(Different setting of register_globals. I know I can solve it programaticaly, changing app so that it will not require register_globlas, but I want do it by changing configuration of php.)
I want to configure php in each virtual directory (server/app1; server/app2) to use different settings. I found out that -c parameter specifies from which dir php will load php.ini file.
BUT, I tried -c parameter from command line & from IIS and both didn't work. Parameter was simply IGNORED!
(I tried:
c:\php\php.exe -c c:\php e:\appdir\index.php
c:\php\php.exe -c c:\php\ e:\appdir\index.php
c:\php\php.exe -c c:\php\php.ini e:\appdir\index.php
)
Then I use parameter -d to specify at least that one different parameter. It worked form command line, but not form IIS!
In IIS when you open _properties_ of virtual directory, and then _edit_ in right bottom side you see configuration of running PhP script engine through CGI. There should be "c:\php\php.exe %s %s" for extension ".php".
(I tried:
c:\php\php.exe -c c:\php %s %s
c:\php\php.exe -c c:\php
c:\php\php.exe -c c:\php\php.ini %s %s
c:\php\php.exe -c c:\php\php.ini
c:\php\php.exe -d register_globals=off %s %s
c:\php\php.exe -d register_globals=off
... and others
)
With NO RESULT! Everything is IGNORED!
Then I tried even "c:\php\php.exe fsfkjsd fsdfksjf asfsfkas fasdkfasdf fdsfj". No result => no error message, no change!
Can anyone help me with this?
Thanx in advance.