Topic: Where you put PHP.INI file in Windows
I am making tool modify PHP.INI for some config, i put it in "c:\windows\" the Windows folder.
Did you all same as me or you put it in another palce like in c:\php for example?
Thanks
You are not logged in. Please login or register.
PunBB Forums → Programming → Where you put PHP.INI file in Windows
I am making tool modify PHP.INI for some config, i put it in "c:\windows\" the Windows folder.
Did you all same as me or you put it in another palce like in c:\php for example?
Thanks
I think some people use C:\WINNT\ too. I think I did at one point (I'm not sure, that's when I ended up with 2 php.ini files and wasn't sure which one was right ).
I put it with the PHP files, my Apache2 config:
# load the PHP 5 module
LoadModule php5_module "C:/usr-bin/PHP/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/usr-bin/PHP"
I also have the directory in my Windows path.
I think some people use C:\WINNT\ too. I think I did at one point (I'm not sure, that's when I ended up with 2 php.ini files and wasn't sure which one was right ).
phpinfo() is useful for figuring that out
pogenwurst wrote:I think some people use C:\WINNT\ too. I think I did at one point (I'm not sure, that's when I ended up with 2 php.ini files and wasn't sure which one was right ).
phpinfo() is useful for figuring that out
Hehe, stupid me, I forgot about that. I never remember how useful phpinfo() is when I most need its help.
Oh well, it was a few months ago anyway.
Well, when I installed Zend Studio for testing it screwed up my PHP and moved php.ini =/ So yeah, I guess phpinfo() can be useful there
Well, when I installed Zend Studio for testing it screwed up my PHP and moved php.ini =/ So yeah, I guess phpinfo() can be useful there
Hmm, the problem I mentioned ocurred when I tried to install Zend Optimizer. A pattern, maybe...?
Hmm, the problem I mentioned ocurred when I tried to install Zend Optimizer. A pattern, maybe...?
Might be. This is where phpinfo() said my php.ini is:
C:\Program Files\Zend\ZendPlatform-2.2.0\etc\php.ini
Hmm, every one have a folder, i will make user point to the ini file by him self.
The good thing is i learned new somthing, thank to hcgtv and for all
# configure the path to php.ini
PHPIniDir "C:/usr-bin/PHP"
PunBB Forums → Programming → Where you put PHP.INI file in Windows
Powered by PunBB, supported by Informer Technologies, Inc.