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

search for in the

php_ini_scanned_files> <memory_get_usage
Last updated: Fri, 22 Aug 2008

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

Descripción

string php_ini_loaded_file ( void )

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

Lista de parámetros

This function has no parameters.

Valores retornados

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

Ejemplos

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

El resultado del ejemplo seria algo similar a:

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



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

php_ini_scanned_files> <memory_get_usage
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites