<?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: Currency conversion in PHP</title>
	<atom:link href="http://blog.motane.lu/2008/12/19/currency-conversion-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.motane.lu/2008/12/19/currency-conversion-in-php/</link>
	<description>Ramblings about software development</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:38:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Gamlastan</title>
		<link>http://blog.motane.lu/2008/12/19/currency-conversion-in-php/comment-page-2/#comment-2776</link>
		<dc:creator>Gamlastan</dc:creator>
		<pubDate>Thu, 08 Dec 2011 16:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://motane.lu/blog/?p=7#comment-2776</guid>
		<description>Hi, thanks for this, it was very useful!! I was using an external currency converter calculator from http://currencycrab.com which was ok.. but this way i will keep it cleaner.. cheers! :)</description>
		<content:encoded><![CDATA[<p>Hi, thanks for this, it was very useful!! I was using an external currency converter calculator from <a href="http://currencycrab.com" rel="nofollow">http://currencycrab.com</a> which was ok.. but this way i will keep it cleaner.. cheers! <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renan Decarlo</title>
		<link>http://blog.motane.lu/2008/12/19/currency-conversion-in-php/comment-page-2/#comment-2640</link>
		<dc:creator>Renan Decarlo</dc:creator>
		<pubDate>Thu, 06 Oct 2011 05:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://motane.lu/blog/?p=7#comment-2640</guid>
		<description>Hello, I was having some trouble using this function, so I came up with this:

[code]
&#039;, $askGoogle);
	$exp = explode(&#039;&#039;, $exp[1]);	
	
	$res = (float)$exp[0];
	if($res) {
		return $res;
	} else {
		return false;
	}
}
 
echo exchangeRate( 10, &#039;usd&#039;, &#039;brl&#039; );
[/code]</description>
		<content:encoded><![CDATA[<p>Hello, I was having some trouble using this function, so I came up with this:</p>
<pre class="brush: plain; title: ; notranslate">
', $askGoogle);
	$exp = explode('', $exp[1]);	

	$res = (float)$exp[0];
	if($res) {
		return $res;
	} else {
		return false;
	}
}

echo exchangeRate( 10, 'usd', 'brl' );
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: 1337ingDisorder</title>
		<link>http://blog.motane.lu/2008/12/19/currency-conversion-in-php/comment-page-1/#comment-1496</link>
		<dc:creator>1337ingDisorder</dc:creator>
		<pubDate>Thu, 26 Aug 2010 19:30:46 +0000</pubDate>
		<guid isPermaLink="false">http://motane.lu/blog/?p=7#comment-1496</guid>
		<description>Cancel my last post, the currency conversion is actually working fine. Our problem is that a different script (based on Apple reports, which have changed their format) started passing bad variables to the currency converter. 

Sorry for the false alarm and thanks again for this handy script! :)

-- 1337ingDisorder</description>
		<content:encoded><![CDATA[<p>Cancel my last post, the currency conversion is actually working fine. Our problem is that a different script (based on Apple reports, which have changed their format) started passing bad variables to the currency converter. </p>
<p>Sorry for the false alarm and thanks again for this handy script! <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#8211; 1337ingDisorder</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 1337ingDisorder</title>
		<link>http://blog.motane.lu/2008/12/19/currency-conversion-in-php/comment-page-1/#comment-1495</link>
		<dc:creator>1337ingDisorder</dc:creator>
		<pubDate>Thu, 26 Aug 2010 19:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://motane.lu/blog/?p=7#comment-1495</guid>
		<description>Hi Tudor,

This script has been working great for months but it seems to have broken today, I suspect Google may have changed the format of their output or something to that effect.

The error output it&#039;s now giving is as follows:

PHP Notice:  Undefined offset:  1 in /path/to/currency_converter.php on line 21

This happened with the usual cron-triggered execution at 8:30am this morning and is still happening when I try manually now (it&#039;s now around noon).

Will try again later in case it&#039;s just a Google hiccup but you may want to try yourself to see if you get the same results or whether it&#039;s just busted for my deployment. :)

Thanks again for writing this script in the first place, has kept my bosses happy for a long time so far!

-- 1337ingDisorder</description>
		<content:encoded><![CDATA[<p>Hi Tudor,</p>
<p>This script has been working great for months but it seems to have broken today, I suspect Google may have changed the format of their output or something to that effect.</p>
<p>The error output it&#8217;s now giving is as follows:</p>
<p>PHP Notice:  Undefined offset:  1 in /path/to/currency_converter.php on line 21</p>
<p>This happened with the usual cron-triggered execution at 8:30am this morning and is still happening when I try manually now (it&#8217;s now around noon).</p>
<p>Will try again later in case it&#8217;s just a Google hiccup but you may want to try yourself to see if you get the same results or whether it&#8217;s just busted for my deployment. <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks again for writing this script in the first place, has kept my bosses happy for a long time so far!</p>
<p>&#8211; 1337ingDisorder</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suresh</title>
		<link>http://blog.motane.lu/2008/12/19/currency-conversion-in-php/comment-page-1/#comment-1441</link>
		<dc:creator>Suresh</dc:creator>
		<pubDate>Wed, 04 Aug 2010 07:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://motane.lu/blog/?p=7#comment-1441</guid>
		<description>Thanks man for this code. it helped me a lot... :)</description>
		<content:encoded><![CDATA[<p>Thanks man for this code. it helped me a lot&#8230; <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Currency Exchange with PHP &#124; thisMayhem</title>
		<link>http://blog.motane.lu/2008/12/19/currency-conversion-in-php/comment-page-1/#comment-1380</link>
		<dc:creator>Currency Exchange with PHP &#124; thisMayhem</dc:creator>
		<pubDate>Sun, 20 Jun 2010 01:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://motane.lu/blog/?p=7#comment-1380</guid>
		<description>[...] Source [...]</description>
		<content:encoded><![CDATA[<p>[...] Source [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sohail</title>
		<link>http://blog.motane.lu/2008/12/19/currency-conversion-in-php/comment-page-1/#comment-1198</link>
		<dc:creator>sohail</dc:creator>
		<pubDate>Fri, 19 Feb 2010 10:30:51 +0000</pubDate>
		<guid isPermaLink="false">http://motane.lu/blog/?p=7#comment-1198</guid>
		<description>I am not webmaster or sum thing. I am going to be professional in web related stuffs, but this is really urgent for me. I want to insert this converter in my non profit website. Please help.</description>
		<content:encoded><![CDATA[<p>I am not webmaster or sum thing. I am going to be professional in web related stuffs, but this is really urgent for me. I want to insert this converter in my non profit website. Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tudor</title>
		<link>http://blog.motane.lu/2008/12/19/currency-conversion-in-php/comment-page-1/#comment-1197</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Fri, 19 Feb 2010 09:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://motane.lu/blog/?p=7#comment-1197</guid>
		<description>Learn your PHP stuff! This blog is not for the absolute beginners. Basically all you have to do is call the &lt;em&gt;exchangeRate&lt;/em&gt; function...</description>
		<content:encoded><![CDATA[<p>Learn your PHP stuff! This blog is not for the absolute beginners. Basically all you have to do is call the <em>exchangeRate</em> function&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sohail</title>
		<link>http://blog.motane.lu/2008/12/19/currency-conversion-in-php/comment-page-1/#comment-1195</link>
		<dc:creator>sohail</dc:creator>
		<pubDate>Thu, 18 Feb 2010 22:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://motane.lu/blog/?p=7#comment-1195</guid>
		<description>Plz tell me step by step procedure how to use this script. I need to insert it in my html webpage.. please help . I hve PHP in my server.</description>
		<content:encoded><![CDATA[<p>Plz tell me step by step procedure how to use this script. I need to insert it in my html webpage.. please help . I hve PHP in my server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sohail</title>
		<link>http://blog.motane.lu/2008/12/19/currency-conversion-in-php/comment-page-1/#comment-1193</link>
		<dc:creator>sohail</dc:creator>
		<pubDate>Thu, 18 Feb 2010 20:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://motane.lu/blog/?p=7#comment-1193</guid>
		<description>I hve PHP in my server.. I meant to say.. I need to embed this code in html page...</description>
		<content:encoded><![CDATA[<p>I hve PHP in my server.. I meant to say.. I need to embed this code in html page&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

