<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Building Web 2.0 Tag Clouds in PHP</title>
	<atom:link href="http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/</link>
	<description>Keeping webmasters up-to-date on technology.</description>
	<lastBuildDate>Sat, 13 Mar 2010 12:34:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joel</title>
		<link>http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/comment-page-1/#comment-23672</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Sun, 07 Feb 2010 02:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/#comment-23672</guid>
		<description>@mike - what do you want to link to?  I&#039;d suggest putting together a &quot;tag page&quot; that lists entries by associated tags.  So if you click on PHP it brings you to all posts with PHP tagged.

It&#039;s easy to link, just put &quot;tagpage.php?v=&quot; . $key . &quot;&quot; and then on your tagpage.php just have one query that uses the variable $key to define the query parameters.

Hope that helps!</description>
		<content:encoded><![CDATA[<p>@mike &#8211; what do you want to link to?  I&#8217;d suggest putting together a &#8220;tag page&#8221; that lists entries by associated tags.  So if you click on PHP it brings you to all posts with PHP tagged.</p>
<p>It&#8217;s easy to link, just put &#8220;tagpage.php?v=&#8221; . $key . &#8220;&#8221; and then on your tagpage.php just have one query that uses the variable $key to define the query parameters.</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NZGeek</title>
		<link>http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/comment-page-1/#comment-20640</link>
		<dc:creator>NZGeek</dc:creator>
		<pubDate>Wed, 23 Dec 2009 11:29:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/#comment-20640</guid>
		<description>mike, you would have to build an array of links, e.g. 
$t = array(&quot;php&quot; =&gt; &quot;http://link&quot;, &quot;orm&quot; =&gt; &quot;http://link&quot;); etc</description>
		<content:encoded><![CDATA[<p>mike, you would have to build an array of links, e.g.<br />
$t = array(&#8220;php&#8221; =&gt; &#8220;http://link&#8221;, &#8220;orm&#8221; =&gt; &#8220;http://link&#8221;); etc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/comment-page-1/#comment-16362</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 20 Aug 2009 07:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/#comment-16362</guid>
		<description>ok, but how do you get the links working in this tag cloud? now you have # but we needs links. Lnks would be smth like &quot;link.php?id=tag_id&quot; - you are only passing two arguments to function, links or tag id are missing</description>
		<content:encoded><![CDATA[<p>ok, but how do you get the links working in this tag cloud? now you have # but we needs links. Lnks would be smth like &#8220;link.php?id=tag_id&#8221; &#8211; you are only passing two arguments to function, links or tag id are missing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AMANdeep MAnn</title>
		<link>http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/comment-page-1/#comment-13636</link>
		<dc:creator>AMANdeep MAnn</dc:creator>
		<pubDate>Sat, 06 Jun 2009 11:08:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/#comment-13636</guid>
		<description>It is really a simple solution, but a good soulution that is exactly; extract all words from a page as values and listing it.</description>
		<content:encoded><![CDATA[<p>It is really a simple solution, but a good soulution that is exactly; extract all words from a page as values and listing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/comment-page-1/#comment-13445</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Sat, 30 May 2009 10:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/#comment-13445</guid>
		<description>Thank you for sharing Akash, I appreciate it.</description>
		<content:encoded><![CDATA[<p>Thank you for sharing Akash, I appreciate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ridvan ROGER</title>
		<link>http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/comment-page-1/#comment-3622</link>
		<dc:creator>Ridvan ROGER</dc:creator>
		<pubDate>Tue, 19 Aug 2008 14:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/#comment-3622</guid>
		<description>It is really a simple solution, but a good soulution that is exactly; extract all words from a page as values and listing it.</description>
		<content:encoded><![CDATA[<p>It is really a simple solution, but a good soulution that is exactly; extract all words from a page as values and listing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Mullan</title>
		<link>http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/comment-page-1/#comment-684</link>
		<dc:creator>Jesse Mullan</dc:creator>
		<pubDate>Mon, 05 May 2008 12:36:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/#comment-684</guid>
		<description>I knew the answer already -- I was wondering if you had considered the edge cases.</description>
		<content:encoded><![CDATA[<p>I knew the answer already &#8212; I was wondering if you had considered the edge cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akash Mehta</title>
		<link>http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/comment-page-1/#comment-682</link>
		<dc:creator>Akash Mehta</dc:creator>
		<pubDate>Mon, 05 May 2008 11:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/#comment-682</guid>
		<description>@Jesse: that&#039;s an interesting point; when $maxval == $minval, we&#039;d have a division by zero when calculating $spread.

However, the only time this could happen is a) when you only have one tag; and b) when all your tags have equal values.

For the first scenario, I leave the validation to the developer as you would probably want to do something when you have only one tag (e.g. list items within the tag).

For the second scenario, either your site is new, you have hit quite a coincidence or you don&#039;t need a tag cloud in the first place (because all your &quot;tags&quot; have equal values). Once again, I leave this up to the developer to handle outside of the function, as the function&#039;s sole purpose is to generate a tag cloud, and I don&#039;t wish to complicate it by adding error handling (or worse still, making it do nothing - blank outputs are the hardest to debug).

Of course, if this is an issue and you choose to handle it within the function, all it takes is an if($spread == 0) $spread = 1;.</description>
		<content:encoded><![CDATA[<p>@Jesse: that&#8217;s an interesting point; when $maxval == $minval, we&#8217;d have a division by zero when calculating $spread.</p>
<p>However, the only time this could happen is a) when you only have one tag; and b) when all your tags have equal values.</p>
<p>For the first scenario, I leave the validation to the developer as you would probably want to do something when you have only one tag (e.g. list items within the tag).</p>
<p>For the second scenario, either your site is new, you have hit quite a coincidence or you don&#8217;t need a tag cloud in the first place (because all your &#8220;tags&#8221; have equal values). Once again, I leave this up to the developer to handle outside of the function, as the function&#8217;s sole purpose is to generate a tag cloud, and I don&#8217;t wish to complicate it by adding error handling (or worse still, making it do nothing &#8211; blank outputs are the hardest to debug).</p>
<p>Of course, if this is an issue and you choose to handle it within the function, all it takes is an if($spread == 0) $spread = 1;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Mullan</title>
		<link>http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/comment-page-1/#comment-644</link>
		<dc:creator>Jesse Mullan</dc:creator>
		<pubDate>Fri, 02 May 2008 19:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/#comment-644</guid>
		<description>What happens when $maxval == $minval ?</description>
		<content:encoded><![CDATA[<p>What happens when $maxval == $minval ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
