Monday, 14 July 2014

get data from xml url using php



Actually I am trying to get data from xml url using php but its not working for me. Please check what is wrong in my code.



$result_xml = simplexml_load_file("http://ift.tt/1seM595");

echo $result_xml->GeocodeResponse->result->formatted_address;


I want to get "formatted_address" from xml file. Please help.


Many Thanks,


No comments:

Post a Comment