Page 1 of 1

PHP INI file location

PostPosted: 29. June 2007 15:37
by ayrtech
How do I persuade XAMPP's PHP to load its INI file? There are multiple copies of the thing in both php and apache folders; I've seen references on the web variously to all of them being "the" one :-/

It doesn't seem to matter though - I've tried changing them all and it makes *no* difference! I've even tried to put one in the Windows folder - no luck, still gets ignored.

OK, I give up! Anyone know the truth of this, and how I make PHP read my changes to its INI? Without this, XAMPP is gonna be useless to me as I need to load new extensions.

Cheers
C

PostPosted: 29. June 2007 15:45
by Wiedmann
In the output from phpinfo() you can see, which "php.ini" your PHP is using.

PostPosted: 29. June 2007 16:01
by ayrtech
Thanks; I had seen that but changing that copy didn't make any difference either, hence my ire..

However, I've just realised that PHP's an Apache module in XAMPP, so of course I needed to restart the server to see changes take effect...

:oops:

In my defence, it's been a long day, and I'm used to standalone PHP...

Anyway, maybe it'll help someone else!

Cheers
C