php_ini_loaded_file(3) php man page | unix.com

Man Page: php_ini_loaded_file

Operating Environment: php

Section: 3

PHP_INI_LOADED_FILE(3)							 1						    PHP_INI_LOADED_FILE(3)

php_ini_loaded_file - Retrieve a path to the loaded php.ini file

SYNOPSIS
string php_ini_loaded_file (void )
DESCRIPTION
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(3) 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
php_ini_scanned_files(3), phpinfo(3), The configuration file. PHP Documentation Group PHP_INI_LOADED_FILE(3)
Related Man Pages
pg_last_notice(3) - php
session_set_cookie_params(3) - php
phar.setstub(3) - php
parse_ini_file(3) - php
php_ini_scanned_files(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Please Welcome Nicki Paul to the Moderator Team!