Sunday, 1 March 2015

How to hit a url and download its xml using php



I tried everything to get the xml from the url, even smottt idea from PHP How to hit a url and download its xml , but didnt work for me.


my scenario;


URL that generates Dollar Exchange Rates:


http://ift.tt/1M33Xep


Here: YY MM DD are the starting date and YY1 MM1 DD1 are the ending date of report. I believe , it generates an xml in unix time of Kathmandu, Asia. Everytime and second seperate xml file name.


Searched internet but nothing,


I want to display the result of xml in a page using php either by downloading the xml from the given url to my localhost folder or directly from web.


please help.


Thanks in Advance


No comments:

Post a Comment