Introduction | |
PEAR Manual | |
require_once 'PEAR/Info.php'; |
boolean PEAR_Info::packageInstalled (
string $name
, string $version = NULL
, string $channel = NULL
, string $user_file = ''
, string $system_file = ''
)
Simple function to check if a package is installed under user or system PEAR installation. Minimal version and channel info are supported.
Package name
(optional) The minimal version that should be installed
(optional) The package channel distribution
(optional) file to read PEAR user-defined options from
(optional) file to read PEAR system-wide defaults from
since version 1.6.0 (2005-01-03)
throws no exceptions thrown
This function should be called statically.
|
Introduction | |
PEAR Manual | |