php.ini location

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Mon Aug 19, 2002 5:31 pm    Post subject: php.ini location Reply with quote

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

PostPosted: Tue Aug 20, 2002 3:44 am    Post subject: Re: php.ini location Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group