How do I locate the php.ini file?
In phpinfo is very convenient because you can look up directives, extensions and other settings alphabetically there. Very often, it is necessary to find the location of the configuration file php.ini; because often there may be several configuration files on the server, but only one is always used.
With phpinfo, it is easy to see which config file is active, see Loaded Configuration File
Note the two columns in phpini: Local Value and Master Value. The first column contains local directives that are set in .htaccess; the second column contains global, server configuration settings.