<?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: Total Firefox download!</title>
	<atom:link href="http://www.rxt7.com/log/?feed=rss2&#038;p=2" rel="self" type="application/rss+xml" />
	<link>http://www.rxt7.com/log/?p=2</link>
	<description>Just another weblog</description>
	<lastBuildDate>Thu, 09 Aug 2007 20:03:15 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Quick Online Tips &#187; Add Firefox Download Counters on Your Site</title>
		<link>http://www.rxt7.com/log/?p=2&#038;cpage=1#comment-11</link>
		<dc:creator>Quick Online Tips &#187; Add Firefox Download Counters on Your Site</dc:creator>
		<pubDate>Fri, 17 Mar 2006 14:49:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelcutter.com/log/?p=2#comment-11</guid>
		<description>[...] A neat counter using PHP is here inserted alongwith some text effortlessly and php code posted here. Another quick script to get the total Firefox downloads from it rss feed. More code about creating a php page and using with iframes. [...]</description>
		<content:encoded><![CDATA[<p>[...] A neat counter using PHP is here inserted alongwith some text effortlessly and php code posted here. Another quick script to get the total Firefox downloads from it rss feed. More code about creating a php page and using with iframes. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThePeccavi</title>
		<link>http://www.rxt7.com/log/?p=2&#038;cpage=1#comment-8</link>
		<dc:creator>ThePeccavi</dc:creator>
		<pubDate>Mon, 30 Jan 2006 11:29:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelcutter.com/log/?p=2#comment-8</guid>
		<description>Thanks! I&#039;ve been trying to make exactly this, saved me loads of trouble :)</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;ve been trying to make exactly this, saved me loads of trouble :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mag3ee</title>
		<link>http://www.rxt7.com/log/?p=2&#038;cpage=1#comment-5</link>
		<dc:creator>mag3ee</dc:creator>
		<pubDate>Wed, 09 Nov 2005 09:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelcutter.com/log/?p=2#comment-5</guid>
		<description>A multi lingual version from mag3ee . Thanks to mag2ee

PHP:
----------------------------------------------------------------
// http://www.pixelcutter.com/log/?p=2
// Modify: mag3ee ( at gmail dot com )
// + Multilanguage (:-Đ)
// + Number format function
// + Style span


$tag = &#039;&#039;;
$inside =0;
$file = &#039;i:\\www\\source\\firefox.xml&#039;;
$file =&quot;http://feeds.spreadfirefox.com/downloads/firefox.xml&quot;;
$your_lang = &quot; FireFox letöltések&quot;; // Hun
$your_lang = &quot; FireFox Downloads&quot;; // Eng
// $your_lang = &quot; FireFox ???&quot;; // Your other lang (Sorry my english :-)

function startElement($parser, $name, $attrs)
{
global $tag, $inside;
if( $name == &#039;PUBDATE&#039; ){
     $tag = $name;
}
if( $name == &#039;ITEM&#039; )
    $inside = 1;
if ($inside == 1)
if( $name == &#039;DESCRIPTION&#039;)
     $tag = $name;   
}

function endElement($parser, $name)
{
global $tag, $inside;
$tag= &#039;&#039;;
if($name == &#039;ITEM&#039;)
   $inside = 0;
}

function characterData($parser, $data)
{
global $tag,$inside;
if ($tag == &#039;PUBDATE&#039;){
    
  // echo $data . &#039;&#039;;

}
  if ($inside ==1 and $tag== &#039;DESCRIPTION&#039;) {

     echo &quot; $your_lang: &quot;. geld($data) 

.&quot;&quot;;
  }
}

if (!($fp = fopen($file, &quot;r&quot;))) {
   die(&quot;could not open XML input&quot;);
}
$xml_parser = xml_parser_create();
xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true);
xml_set_element_handler($xml_parser, &quot;startElement&quot;, &quot;endElement&quot;);
xml_set_character_data_handler($xml_parser, &quot;characterData&quot;);

while ($data = fread($fp, 4096)) {
   if (!xml_parse($xml_parser, $data, feof($fp))) {
       die(sprintf(&quot;XML error: %s at line %d&quot;,
                   xml_error_string(xml_get_error_code($xml_parser)),
                   xml_get_current_line_number($xml_parser)));
   }
}
xml_parser_free($xml_parser);

// geld(123) &gt;&gt;&gt; 123
// geld(123456) &gt;&gt;&gt; 1.234.567
// + Number format string (http://hu.php.net/manual/hu/function.number-format.php) by kolnedra at gmail dot com

function geld($nm) {
   for ($done=strlen($nm); $done &gt; 3;$done -= 3) {
       $returnNum = &quot;.&quot;.substr($nm,$done-3,3).$returnNum;
   }
   return substr($nm,0,$done).$returnNum;
}</description>
		<content:encoded><![CDATA[<p>A multi lingual version from mag3ee . Thanks to mag2ee</p>
<p>PHP:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
// <a href="http://www.pixelcutter.com/log/?p=2" rel="nofollow">http://www.pixelcutter.com/log/?p=2</a><br />
// Modify: mag3ee ( at gmail dot com )<br />
// + Multilanguage (:-Đ)<br />
// + Number format function<br />
// + Style span</p>
<p>$tag = &#8221;;<br />
$inside =0;<br />
$file = &#8216;i:\\www\\source\\firefox.xml&#8217;;<br />
$file =&#8221;http://feeds.spreadfirefox.com/downloads/firefox.xml&#8221;;<br />
$your_lang = &#8221; FireFox letöltések&#8221;; // Hun<br />
$your_lang = &#8221; FireFox Downloads&#8221;; // Eng<br />
// $your_lang = &#8221; FireFox ???&#8221;; // Your other lang (Sorry my english :-)</p>
<p>function startElement($parser, $name, $attrs)<br />
{<br />
global $tag, $inside;<br />
if( $name == &#8216;PUBDATE&#8217; ){<br />
     $tag = $name;<br />
}<br />
if( $name == &#8216;ITEM&#8217; )<br />
    $inside = 1;<br />
if ($inside == 1)<br />
if( $name == &#8216;DESCRIPTION&#8217;)<br />
     $tag = $name;<br />
}</p>
<p>function endElement($parser, $name)<br />
{<br />
global $tag, $inside;<br />
$tag= &#8221;;<br />
if($name == &#8216;ITEM&#8217;)<br />
   $inside = 0;<br />
}</p>
<p>function characterData($parser, $data)<br />
{<br />
global $tag,$inside;<br />
if ($tag == &#8216;PUBDATE&#8217;){</p>
<p>  // echo $data . &#8221;;</p>
<p>}<br />
  if ($inside ==1 and $tag== &#8216;DESCRIPTION&#8217;) {</p>
<p>     echo &#8221; $your_lang: &#8220;. geld($data) </p>
<p>.&#8221;";<br />
  }<br />
}</p>
<p>if (!($fp = fopen($file, &#8220;r&#8221;))) {<br />
   die(&#8221;could not open XML input&#8221;);<br />
}<br />
$xml_parser = xml_parser_create();<br />
xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true);<br />
xml_set_element_handler($xml_parser, &#8220;startElement&#8221;, &#8220;endElement&#8221;);<br />
xml_set_character_data_handler($xml_parser, &#8220;characterData&#8221;);</p>
<p>while ($data = fread($fp, 4096)) {<br />
   if (!xml_parse($xml_parser, $data, feof($fp))) {<br />
       die(sprintf(&#8221;XML error: %s at line %d&#8221;,<br />
                   xml_error_string(xml_get_error_code($xml_parser)),<br />
                   xml_get_current_line_number($xml_parser)));<br />
   }<br />
}<br />
xml_parser_free($xml_parser);</p>
<p>// geld(123) &gt;&gt;&gt; 123<br />
// geld(123456) &gt;&gt;&gt; 1.234.567<br />
// + Number format string (<a href="http://hu.php.net/manual/hu/function.number-format.php" rel="nofollow">http://hu.php.net/manual/hu/function.number-format.php</a>) by kolnedra at gmail dot com</p>
<p>function geld($nm) {<br />
   for ($done=strlen($nm); $done &gt; 3;$done -= 3) {<br />
       $returnNum = &#8220;.&#8221;.substr($nm,$done-3,3).$returnNum;<br />
   }<br />
   return substr($nm,0,$done).$returnNum;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://www.rxt7.com/log/?p=2&#038;cpage=1#comment-3</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Sat, 22 Oct 2005 14:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelcutter.com/log/?p=2#comment-3</guid>
		<description>u welcome!</description>
		<content:encoded><![CDATA[<p>u welcome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duncan Wong</title>
		<link>http://www.rxt7.com/log/?p=2&#038;cpage=1#comment-2</link>
		<dc:creator>Duncan Wong</dc:creator>
		<pubDate>Wed, 19 Oct 2005 14:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelcutter.com/log/?p=2#comment-2</guid>
		<description>ok great ! 
trying it now in my website
Thanks a lot for the good work !</description>
		<content:encoded><![CDATA[<p>ok great !<br />
trying it now in my website<br />
Thanks a lot for the good work !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
