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

search for in the

php_ini_scanned_files> <memory_get_usage
[edit] Last updated: Fri, 25 May 2012

view this page in

php_ini_loaded_file

(PHP 5 >= 5.2.4)

php_ini_loaded_fileRécupère le chemin d'un fichier php.ini chargé

Description

string php_ini_loaded_file ( void )

Vérifie si un fichier php.ini est chargé, et récupère son chemin.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Le chemin du fichier php.ini chargé, ou FALSE si aucun n'a été chargé.

Exemples

Exemple #1 Exemple avec php_ini_loaded_file()

<?php
$inipath 
php_ini_loaded_file();

if (
$inipath) {
    echo 
'php.ini chargé : ' $inipath;
} else {
    echo 
'Aucun fichier php.ini n\'a été chargé';
}
?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

php.ini chargé : /usr/local/php/php.ini

Voir aussi



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

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