Knowing which php.ini is currently loading

I was trying to find out where my php.ini, couldn’t find it and when i found it there was like 3 or 4 of em in there…
I use XAMPP on this one… This is a newbie guide but i think it’s useful…

First make a file phpinfo.php

It's in the loaded configuration file, Then you’ll see this information that you’ll find useful… the one im trying to find is which php.ini is currently loading so that’s about it.

If you are using a command line Linux

find / -name 'php.ini' 2> /dev/null
php -i | grep 'Configuration'
php --ini

Subscribe to You Live What You Learn

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
[email protected]
Subscribe