If you install PHP as a CGI exe rather than as a server module, you can
pick up a php.ini file from the same folder as the script you wish to run.

HTH,

Richard

==========================================
Richard Black
Senior Developer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 951 8008
Email: [EMAIL PROTECTED]


                                                                                
                                                       
                      Herbert Grunwald                                          
                                                       
                      <[EMAIL PROTECTED]        To:       
internals@lists.php.net                                                       
                      >                        cc:                              
                                                       
                                               Subject:  [PHP-DEV] php.ini      
                                                       
                      04/05/2005 11:15                                          
                                                       
                      Please respond to                                         
                                                       
                      Herbert Grunwald                                          
                                                       
                                                                                
                                                       
                                                                                
                                                       




I'm running both PHP4 and PHP5 in two different virtual directories in IIS.
(That means that different virtual dirs use different ISAPI .dll-s for
.php files.)

Everything works fine, except php.ini -- it is obvious that I can't
use a shared php.ini. But there seems to be no way of specifying
different .ini-s for the separate ISAPI dll-s. The .ini that lies in
the same dir as the .dll **won't be used**.

Currently I'm running with the defaults, with no .ini specified :(
Please consider adding the .dll load path to the .ini search path (I
doubt if it's possible) or propose something to overcome the problem
(PHP4RC and PHP5RC instead of PHPRC would do the trick, but a generic
solution should be preferred as people may want to run PHP4 with
different configurations in a single IIS also).

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to