<?php error_reporting(0);
$currency_code = $_GET['currency_code'];
$currency_opt = strtoupper($currency_code)."INR";
$jsn_response = file_get_contents('http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20%28%22' .$currency_opt. '%22%29&format=json&env=store://datatables.org/alltableswithkeys&callback=');
$currencyrate_arr = json_decode($jsn_response, true);
$currency_rate = $currencyrate_arr['query']['results']['rate']['Rate'];
//var_dump($currency_rate);
if($currency_rate > 0){
echo $currency_text = $currency_rate;
}
else{
echo $currency_text = "SORRY! ERROR..";
}
?>
통화가 잘되었지만 통화 변환을 위해이 코드를 사용하는 중에 오류가 발생했습니다.yahoo의 통화 변환기를 구현하는 중 오류가 발생했습니다.
것은 ... 당신이 무엇을 얻을 오류 – TiMESPLiNTER
1 GBP = 경고를 알려에 http : // 래퍼하여 서버 구성에서 사용할 수 없습니다 allow_url_fopen을 = 0 /homeb/home/arpan/www/donate/cur_conv.php 온라인 6 경고 : file_get_contents (http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo. finance.xchange % 20where % 20pair % 20in % 20 % 28 % 22GBPINR % 22 % 29 & format = json & env = store : //datatables.org/alltableswithkeys&callback=) : 스트림을 열지 못했습니다./homeb/home에서 적절한 래퍼를 찾을 수 없습니다. /arpan/www/donate/cur_conv.php on line 6 죄송합니다! 오류 .. INR – user3627349