Last 5.3 release ever available: PHP 5.3.29 - 5.3 now EOL

php_ini_loaded_file

(PHP 5 >= 5.2.4)

php_ini_loaded_fileRetrieve a path to the loaded php.ini file

Descrição

string php_ini_loaded_file ( void )

Check if a php.ini file is loaded, and retrieve its path.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

The loaded php.ini path, or FALSE if one is not loaded.

Exemplos

Exemplo #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';
}
?>

O exemplo acima irá imprimir algo similar à:

Loaded php.ini: /usr/local/php/php.ini

Veja Também

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top