Algunos tips que se debería tener en cuenta.
- Si tienes problemas con visualizar contenido del Idioma adiciona este codigo:$vars = array(‘weather’ => ‘estepona,malaga’, ‘hl’ => ‘es’);
$qs = http_build_query($vars);
$urlGUI = ‘http://www.google.com/ig/api?’ . $qs;
$url = file_get_contents($urlGUI);para conocer mas referente a como utilizar file_get_contents ingresa a este enlace - Se tu servidor no permite utilizar file_get_contents() y tienes algun warning.
adiciona a tu sitio php.inicon esta instrucción:
;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = On
Aquí les dejo como debería quedar el código fuente: Codigo temperatura
