Re: php.ini
| From: | Jordi Canals | Date: | Tue, 16 Nov 2004 13:38:19 +0000 |
| Subject: | Re: php.ini | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202135@lists.php.net to get a copy of this message | ||
On Tue, 16 Nov 2004 00:17:27 -0800 (PST), lister@pikkle.com
<lister@pikkle.com> wrote:
> (on windows) can someone tell me where to define which php.ini gets used?
>
> On my dev box, I installed the zend editor. Now when i do a
> localhost/phpinfo()
> from a normal browser window (ie not from within the zend IDE) it says php
> is using the <..>/zend/php.ini settings file...
>
> within apache's httpd.conf you can set which php DLL to use, but I cannot
> see how php then knows which .ini file to work with? It seems to be
> picking up the php.ini from a completely different directory somewhere, so
> i am wondering if the zend installer sets some secret registry value that
> the php.dll is looking for?
>
If you're using Apache 2 (does not work with Apache 1.3)... then you
can put a directive in httpd.conf:
PHPIniDir c:/php
Regards,
Jordi.