0

Error while implementing currency converter of yahoo

*%20from%20yahoo.finance.xchange%20where%20pair%20in%20%28%22' .$currency_opt. '%22%29&format=json&env= '); $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.."; } ?>

by
1 Reply
  • And the error is Warning: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /homeb/home/arpan/<www/donate/cur_conv.php> on line 6 Warning: 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=>): failed to open stream: no suitable wrapper could be found in /homeb/home/arpan/<www/donate/cur_conv.php> on line 6

    0

Recent Posts

in PHP Development