check for installed package

From: Date: Wed, 14 Jul 2004 07:38:38 +0000
Subject: check for installed package
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32003@lists.php.net to get a copy of this message
hi all! what's the fastest/best way of determining wether a pear package is installed or not? i want to check wether a given package is installed for optional stuff in my app. should i: - require() the package and see if it throws an error? - ask the pear-registry? - do a file_exist()? can someone help me with this? stephan

« previous php.pear.dev (#32003) next »