<?php
/**
* PEAR_Info Request #13741 : show list if potential config files
*
* @link http://pear.php.net/bugs/bug.php?id=13741
*
* Use the new selectors of default stylesheet available in PEAR{data_dir}/PEAR_Info
*
* dl { margin: 0 }
*
* dd.cfg_found { color: green; }
* dd.cfg_notfound { color: red; }
*
* NOTICE:
* In this example we give a user file 'c:\wamp\bin\php\php5.2.6\pear.ini' in
* class constructor that does not exists => PEAR_Info search then for available
* system file
*/
require_once 'PEAR/Info.php';
$options = array('resume' => PEAR_INFO_GENERAL | PEAR_INFO_CHANNELS |
PEAR_INFO_PACKAGES_VERSION | PEAR_INFO_FULLPAGE,
'channels' => array('pear.php.net', '__uri'));
$info = new PEAR_Info('', 'c:\wamp\bin\php\php5.2.6\pear.ini', '', $options);
$info->display();
?>