You are here

public static function krumo::ini in Devel 7

Same name and namespace in other branches
  1. 6 krumo/class.krumo.php \krumo::ini()

Prints a list of all the values from an INI file.

@access public @static

Parameters

string $ini_file:

File

krumo/class.krumo.php, line 514

Class

krumo
Krumo API

Code

public static function ini($ini_file) {

  // disabled ?
  //
  if (!krumo::_debug()) {
    return false;
  }

  // read it
  //
  if (!($_ = @parse_ini_file($ini_file, 1))) {
    return false;
  }

  // render it
  //
  ?>
<div class="krumo-title">
This is a list of all the values from the <code><b><?php

  echo realpath($ini_file) ? realpath($ini_file) : $ini_file;
  ?></b></code> INI file.
</div>
    <?php

  return krumo::dump($_);
}