function krumo::phpini

Prints a list of the configuration settings read from <i>php.ini</i>

@access public @static

File

krumo/class.krumo.php, line 268

Class

krumo
Krumo API

Code

public static function phpini() {
    // disabled ?
    //
    if (!krumo::_debug()) {
        return false;
    }
    if (!readable(get_cfg_var('cfg_file_path'))) {
        return false;
    }
    // render it
    //
    ?>
<div class="krumo-title">
This is a list of the configuration settings read from <code><b><?php

    echo get_cfg_var('cfg_file_path');
    ?></b></code>.
</div>
    <?php

    return krumo::dump(parse_ini_file(get_cfg_var('cfg_file_path'), true));
}