I have XAMPP 1.6.6 installed, and PHP is working fine. However, I have noticed that the php.ini file from apache/bin is being used.
from phpinfo():
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\Java\xampp\apache\bin\php.ini
Note that C:\Java\xampp is where I have installed XAMPP.
I have a php.ini file in each folder on my web site, but the files are being ignored for some reason. My understanding is that php is supposed to look for php.ini in the local folder first, then what is defined in the PHPRC environment variable (which does not appear to be defined on my system) and then the directory specified at compile time, which would be c:\windows.
Doing a global search for \php.ini in the XAMPP directory, I see a few places where the apache\bin\php.ini is found:
xampp-control.exe
xampp-control-default.exe
phpswitch.php
From the looks of the code, the phpswitch application merely changes out the php.ini file in apache\bin.
So, I am thinking that the executable files are controlling where php.ini is being read from, and it looks like it might be hard coded. Can anyone confirm if this is true? If so, is there any kind of override?
Thanks,
John