y mostrarlo en mi web como tipo de cambio...
Vi un post donde obtienen con un código esos valores, el codigo es:
Código PHP:
$datafeed= file_get_contents("http://rate-exchange.appspot.com/currency?from=USD&to=MXN");
$obj = json_decode($datafeed);
echo $obj->{'rate'};
Pero no funciona, me aparece el siguiente error:
Código:
Que estará mal?Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/betravel/public_html/plantilla.php on line 23 Warning: file_get_contents(http://rate-exchange.appspot.com/currency?from=USD&to=MXN) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/betravel/public_html/plantilla.php on line 23
![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)
Agradezco su ayuda,,, saludos...