php where is php.ini code example
Example 1: find which php.ini is used
for cmd : php --ini
for code : use php_ini_loaded_file() as :=
$inipath = php_ini_loaded_file();
if ($inipath) {
echo 'Loaded php.ini: ' . $inipath;
} else {
echo 'A php.ini file is not loaded';
}
Example 2: where is php.ini file
#Here is the path of php.ini file
C:\xampp\php\php.ini
#check in your system drive where the wamp or Xampp is install