Google Finance price Conversion API not working
Previous Working Code:
$from_Currency = "INR"; $to_Currency = "USD"; $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); $converted_amount = preg_replace("/[^0-9\.]/", null, $get); return round($converted_amount, 2);
But Now, this API is Not Working. Please Follow for Update. If you have the answer share with us. Please comment & share to the world.