Comments on: $pear->list http://xn--9bi.net/2007/10/13/pear-list/ Really, it's all you need Mon, 13 Sep 2010 04:02:47 +0000 hourly 1 http://wordpress.org/?v=3.3.1 By: 網站製作學習誌 » [Web] 連結分享 http://xn--9bi.net/2007/10/13/pear-list/comment-page-1/#comment-14636 網站製作學習誌 » [Web] 連結分享 Wed, 25 Nov 2009 02:49:32 +0000 http://xn--9bi.net/2007/10/13/pear-list/#comment-14636 [...] $pear->list [...] [...] $pear->list [...]

]]>
By: Ken Guest http://xn--9bi.net/2007/10/13/pear-list/comment-page-1/#comment-13920 Ken Guest Mon, 15 Oct 2007 00:05:59 +0000 http://xn--9bi.net/2007/10/13/pear-list/#comment-13920 This inspired me to find a way to check if certain packages of a specific version are installed: include 'PEAR/Registry.php'; $reg = new PEAR_Registry; $packages = array(array("PEAR", "1.6.2"), array("Date", "1.4.7"), array("Date_Holidays", "0.17.1"), array("Validate_IE", "0.2.1")); foreach($packages as $package) { $pkg = $reg->getPackage($package[0]); $version = $pkg->getVersion(); echo "{$package[0]} - {$package[1]} - ", version_compare($version, $package[1], ">=") ? "OK": "BAD", "\n"; } This inspired me to find a way to check if certain packages of a specific version are installed:

include ‘PEAR/Registry.php’;
$reg = new PEAR_Registry;

$packages = array(array(“PEAR”, “1.6.2″),
array(“Date”, “1.4.7″),
array(“Date_Holidays”, “0.17.1″),
array(“Validate_IE”, “0.2.1″));

foreach($packages as $package) {
$pkg = $reg->getPackage($package[0]);
$version = $pkg->getVersion();
echo “{$package[0]} – {$package[1]} – “, version_compare($version, $package[1], “>=”) ? “OK”: “BAD”, “\n”;
}

]]>
By: developercast.com » Adam Harvey’s Blog: $pear->list http://xn--9bi.net/2007/10/13/pear-list/comment-page-1/#comment-13919 developercast.com » Adam Harvey’s Blog: $pear->list Sat, 13 Oct 2007 20:03:08 +0000 http://xn--9bi.net/2007/10/13/pear-list/#comment-13919 [...] Harvey has a (very) quick post with a hint for PEAR users out there - how to get a list of installaed packages on the system [...] [...] Harvey has a (very) quick post with a hint for PEAR users out there – how to get a list of installaed packages on the system [...]

]]>
By: PHPDeveloper.org http://xn--9bi.net/2007/10/13/pear-list/comment-page-1/#comment-13918 PHPDeveloper.org Sat, 13 Oct 2007 18:03:29 +0000 http://xn--9bi.net/2007/10/13/pear-list/#comment-13918 <strong>Adam Harvey's Blog: $pear->list...</strong> ... Adam Harvey’s Blog: $pear->list…

]]>
By: Daniel O'Connor http://xn--9bi.net/2007/10/13/pear-list/comment-page-1/#comment-13917 Daniel O'Connor Sat, 13 Oct 2007 03:46:40 +0000 http://xn--9bi.net/2007/10/13/pear-list/#comment-13917 Oh, that beats PEAR_Info Oh, that beats PEAR_Info

]]>