GoLang php_ini_loaded_file

request it (350)
GoLang replacement for PHP's php_ini_loaded_file [edit | history]



Do you know a GoLang replacement for PHP's php_ini_loaded_file? Write it!

PHP php_ini_loaded_file

PHP original manual for php_ini_loaded_file [ show | php.net ]

php_ini_loaded_file

(PHP 5 >= 5.2.4, PHP 7)

php_ini_loaded_fileRetrieve a path to the loaded php.ini file

Description

string php_ini_loaded_file ( void )

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

Parameters

This function has no parameters.

Return Values

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

Examples

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

The above example will output something similar to:

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

See Also