I try to get google weather info into my website.
when i try this code:
Code: Select all
<?php
header("content-type: text/xml");
$xmlData = file_get_contents("http://www.google.com/ig/api?weather=new%20york");
echo $xmlData;
?>
but when i directly type http://www.google.com/ig/api?weather=new%20york into the browser, it give me the xml file.
or.. it that possible the error because, my company block something in firewall?
Any idea how to solve this problem?
Thanks for any reply/ help