(PHP 5 >= 5.2.4)
php_ini_loaded_file — Retrieve a path to the loaded php.ini file
Check if a php.ini file is loaded, and retrieve its path.
Questa funzione non contiene parametri.
The loaded php.ini path, or FALSE
if one is not loaded.
Example #1 php_ini_loaded_file() example
<?php
$inipath = php_ini_loaded_file();
if ($inipath) {
echo 'Loaded php.ini: ' . $inipath;
} else {
echo 'A php.ini file is not loaded';
}
?>
Il precedente esempio visualizzerĂ qualcosa simile a:
Loaded php.ini: /usr/local/php/php.ini