<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: $pear-&gt;list</title>
	<atom:link href="http://xn--9bi.net/2007/10/13/pear-list/feed/" rel="self" type="application/rss+xml" />
	<link>http://xn--9bi.net/2007/10/13/pear-list/</link>
	<description>Really, it's all you need</description>
	<pubDate>Mon, 08 Sep 2008 10:02:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Ken Guest</title>
		<link>http://xn--9bi.net/2007/10/13/pear-list/#comment-13920</link>
		<dc:creator>Ken Guest</dc:creator>
		<pubDate>Mon, 15 Oct 2007 00:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://xn--9bi.net/2007/10/13/pear-list/#comment-13920</guid>
		<description>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-&#62;getPackage($package[0]);
    $version = $pkg-&#62;getVersion();
    echo "{$package[0]} - {$package[1]} - ", version_compare($version, $package[1], "&#62;=") ? "OK": "BAD", "\n";
}</description>
		<content:encoded><![CDATA[<p>This inspired me to find a way to check if certain packages of a specific version are installed:</p>
<p>include &#8216;PEAR/Registry.php&#8217;;<br />
$reg = new PEAR_Registry;</p>
<p>$packages = array(array(&#8221;PEAR&#8221;, &#8220;1.6.2&#8243;),<br />
                  array(&#8221;Date&#8221;, &#8220;1.4.7&#8243;),<br />
                  array(&#8221;Date_Holidays&#8221;, &#8220;0.17.1&#8243;),<br />
                  array(&#8221;Validate_IE&#8221;, &#8220;0.2.1&#8243;));</p>
<p>foreach($packages as $package) {<br />
    $pkg = $reg-&gt;getPackage($package[0]);<br />
    $version = $pkg-&gt;getVersion();<br />
    echo &#8220;{$package[0]} - {$package[1]} - &#8220;, version_compare($version, $package[1], &#8220;&gt;=&#8221;) ? &#8220;OK&#8221;: &#8220;BAD&#8221;, &#8220;\n&#8221;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: developercast.com &#187; Adam Harvey&#8217;s Blog: $pear-&#62;list</title>
		<link>http://xn--9bi.net/2007/10/13/pear-list/#comment-13919</link>
		<dc:creator>developercast.com &#187; Adam Harvey&#8217;s Blog: $pear-&#62;list</dc:creator>
		<pubDate>Sat, 13 Oct 2007 20:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://xn--9bi.net/2007/10/13/pear-list/#comment-13919</guid>
		<description>[...] 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 [...]</description>
		<content:encoded><![CDATA[<p>[...] 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 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHPDeveloper.org</title>
		<link>http://xn--9bi.net/2007/10/13/pear-list/#comment-13918</link>
		<dc:creator>PHPDeveloper.org</dc:creator>
		<pubDate>Sat, 13 Oct 2007 18:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://xn--9bi.net/2007/10/13/pear-list/#comment-13918</guid>
		<description>&lt;strong&gt;Adam Harvey's Blog: $pear-&#62;list...&lt;/strong&gt;

...</description>
		<content:encoded><![CDATA[<p><strong>Adam Harvey&#8217;s Blog: $pear-&gt;list&#8230;</strong></p>
<p>&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel O'Connor</title>
		<link>http://xn--9bi.net/2007/10/13/pear-list/#comment-13917</link>
		<dc:creator>Daniel O'Connor</dc:creator>
		<pubDate>Sat, 13 Oct 2007 03:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://xn--9bi.net/2007/10/13/pear-list/#comment-13917</guid>
		<description>Oh, that beats PEAR_Info</description>
		<content:encoded><![CDATA[<p>Oh, that beats PEAR_Info</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.019 seconds -->
