I have a page called index.php which has some content on it, but the title is set from another server that generates a text file called cache_currentsongcallapi.txt
Contents of 'cache_currentsongapi.txt':
<tracks> <radioname>Mick's Music Station</radioname> <rank>0</rank> <isradionomy>1</isradionomy> <radurl>http://www.radionomy.com/mick-smusicstation</radurl> <track> <uniqueid>2722440231</uniqueid> <title>Hello</title> <artists>Adele</artists> <starttime>2015-11-23 21:05:02.35</starttime> <playduration>293023</playduration> <current>1</current> <callmeback>217256</callmeback> </track> </tracks> Is there any way that I can take ONLY the title from the text file and display it in the index page?
NOTE:
This method cannot include editing the text file as it is overwritten by the server.
The website that this code will go on: http://mickyd.net/radio
No comments:
Post a Comment