php_ini_loaded_file
(PHP 5 >= 5.2.4)
php_ini_loaded_file — Retrieve a path to the loaded php.ini file
Descrierea
string php_ini_loaded_file
( void
)
Check if a php.ini file is loaded, and retrieve its path.
Parametri
Această funcție nu are parametri.
Valorile întoarse
The loaded php.ini path, or FALSE if one is not loaded.
Exemple
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';
}
?>
Exemplul de mai sus va afișa ceva similar cu:
Loaded php.ini: /usr/local/php/php.ini
Vedeți de asemenea
- php_ini_scanned_files() - Return a list of .ini files parsed from the additional ini dir
- phpinfo() - Outputs information about PHP's configuration
- The configuration file
There are no user contributed notes for this page.
