View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Mon Aug 19, 2002 5:31 pm Post subject: php.ini location |
|
|
Hi. Is it possible to have php started with a php.ini file located elsewhere the /windows directory?
The php manual shows the command
"php -c path-to-file\php.ini"
but this doesn't seem to work and doesn't get recognized by the configuration file when i use:
cgiinterpreter "php/php.exe -c path/php.ini" php
Do you know of a workaround for adding options to the executable path?
I just want to have one directory with the application and the server/php which i copy it to the terminals i'm going to install it without having to copy files here and there.
Thanks
John |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Aug 20, 2002 3:44 am Post subject: Re: php.ini location |
|
|
Anonymous wrote: | Hi. Is it possible to have php started with a php.ini file located elsewhere the /windows directory?
The php manual shows the command
"php -c path-to-file\php.ini"
but this doesn't seem to work and doesn't get recognized by the configuration file when i use:
cgiinterpreter "php/php.exe -c path/php.ini" php
Do you know of a workaround for adding options to the executable path?
I just want to have one directory with the application and the server/php which i copy it to the terminals i'm going to install it without having to copy files here and there.
Thanks
John |
CGI Interpreters doesn't support an entire command line for now. The workaround is to create a program (using a compiler) that accepts only one argument and that runs "php/php.exe -c path/php.ini %1". Then you should use that program as the CGI interpreter.
The other solution is to wait for version 1.1 that will include the feature that you want. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|