1for cmd : php --ini
2
3for code : use php_ini_loaded_file() as :=
4
5$inipath = php_ini_loaded_file();
6if ($inipath) {
7 echo 'Loaded php.ini: ' . $inipath;
8} else {
9 echo 'A php.ini file is not loaded';
10}
11. Create test.php file with the following content
2
32. <?php phpinfo(); ?>
4
53. Put it in the root of the site (or in a public folder)
6
74. Open the file on your browser "domaine.com/test.php"
8
94. Look for "Loaded Configuration File"