Introduction -- Introduction to PEAR_Info
Introduction to PEAR_Info
PEAR_Info obtains and displays information about your current PEAR
Install.
The PEAR_Info page features an A-Z index for easy searching, aswell
as anchors for each package in the form of pkg_Package_Name (i.e.
url.tld/pearinfo.php#pkg_PEAR_Info) PEAR_Info also features a full 'PEAR
Credits' page, with information about the authors of the packages you
currently have installed. PEAR_Info will also display any later versions
that are available from PEAR to help keep you up to date.
Example 41-1. Using PEAR_Info <?php
require_once 'PEAR/Info.php';
/*
If you need to set a http_proxy value at run-time you can use the
following, this must be called BEFORE instantiating the PEAR_Info object
*/
PEAR_Info::setProxy('your.proxy.here');
/*
Optional pear_dir variable, allows you to choose where your PEAR
install is, in case its not found
*/
$pear_dir = "/path/to/your/pear/files";
/*
Instantiate PEAR_Info object
*/
$info = new PEAR_Info($pear_dir);
/*
Show PEAR_Info output
*/
$info->show();
?> |
|