downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

php_ini_scanned_files> <memory_get_usage
[edit] Last updated: Tue, 21 May 2013

view this page in

php_ini_loaded_file

(PHP 5 >= 5.2.4)

php_ini_loaded_fileRetrieve a path to the loaded php.ini file

Descrizione

string php_ini_loaded_file ( void )

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

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

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

Esempi

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

Vedere anche:



add a note add a note User Contributed Notes php_ini_loaded_file - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites