/ programming

Quickest way to find active php.ini

How to quickly find active php.ini file?

You're administering a system you're not familir with (?) and need to quikly know the location of the active `php.ini` file.
Simply run from command line:
php -ini

The above will out put the location of the active php -ini file, along will all other config files php is including.

To just show the php.ini file run:

 php -ini|grep 'php.ini'