I had the exact same problem described here: https://stackoverflow.com/a/166778/
I used @hobailey's answer for a temporary fix until I can upgrade it to another version or google decides to make the correct api.
How Google Changed the URL to
https:
So, the fix found is below.
$amount = urlencode($amount); $from_Currency = urlencode($from_Currency); $to_Currency = urlencode($to_Currency); $get = file_get_contents("https://www.google.com/finance/converter?a=$amount&from=$from_Currency&to=$to_Currency"); $get = explode("<span class=bld>",$get); $get = explode("</span>",$get[1]); $converted_amount = preg_replace("/[^0-9\.]/", null, $get[0]);
thanks @hobailey for this little fix.
Simon davies
source share