How to check which ini file is loaded in PHP

This snippet will help you check the ini file that is being used.

$inipath = php_ini_loaded_file();

if ($inipath) {
    echo 'Loaded php.ini: ' . $inipath;
} else {
    echo 'A php.ini file is not loaded';
}

Source

Leave a Reply

Your email address will not be published. Required fields are marked *