screenshot

  1. <?php
  2. /**
  3.  * PEAR_Info Request #13741 : show list if potential config files
  4.  *
  5.  * @link http://pear.php.net/bugs/bug.php?id=13741
  6.  *
  7.  * Use the new selectors of default stylesheet available in PEAR{data_dir}/PEAR_Info
  8.  *
  9.  * dl { margin: 0 }
  10.  *
  11.  * dd.cfg_found { color: green; }
  12.  * dd.cfg_notfound { color: red; }
  13.  *
  14.  * NOTICE:
  15.  * In this example we give a user file 'c:\wamp\bin\php\php5.2.6\pear.ini' in
  16.  * class constructor that does not exists => PEAR_Info search then for available
  17.  * system file
  18.  */
  19.  
  20. require_once 'PEAR/Info.php';
  21.  
  22. $options = array('resume' =>  PEAR_INFO_GENERAL | PEAR_INFO_CHANNELS |
  23.                 PEAR_INFO_PACKAGES_VERSION | PEAR_INFO_FULLPAGE,
  24.                 'channels' => array('pear.php.net', '__uri'));
  25.  
  26. $info = new PEAR_Info('', 'c:\wamp\bin\php\php5.2.6\pear.ini', '', $options);
  27. $info->display();
  28. ?>