php_ini_loaded_file : the path of php.ini file

echo php_ini_loaded_file()
Output is True or False and the path is returned if php.ini file is loaded.
$path = php_ini_loaded_file();

if ($path) {
    echo 'Path of  php.ini: ' . $path;
} else {
    echo 'No php.ini file is loaded';
Output is
Path of php.ini: C:\php\php.ini
You can get the path of php.ini by using php_info()

Post your comments , suggestion , error , requirements etc here .

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2022 All rights reserved worldwide Privacy Policy Disclaimer