EchoFool Posted May 7, 2009 Share Posted May 7, 2009 I am kinda stuck and need some help on what i am looking for in order to learn this " idea " i have. Basically i have a radio stream, and a html file which contains: Song Currently Playing Artist Name One on each line, now i'm trying to find a way to grab the two lines from that html file and assign them to PHP variables and echo them on my server. Some one briefly mentioned some thing called "Curl" ? No idea what that is, and is that person suggesting the right thing i need, if so what is it that Curl does exactly? And what am i suppose to be searching for in PHP to grab the html content to manipulate on the php script. I should add the HTML file with the song info is on a different server altogether. And my server is meant to be obtaining the info from that html file... Hope im talking sense and any advice is welcome. Link to comment https://forums.phpfreaks.com/topic/157270-solved-what-am-i-looking-for/ Share on other sites More sharing options...
Ken2k7 Posted May 7, 2009 Share Posted May 7, 2009 cURL Link to comment https://forums.phpfreaks.com/topic/157270-solved-what-am-i-looking-for/#findComment-828844 Share on other sites More sharing options...
EchoFool Posted May 7, 2009 Author Share Posted May 7, 2009 But is Curl exactly what i need or is there a different/easier/better way? Or is Curl the only way? Link to comment https://forums.phpfreaks.com/topic/157270-solved-what-am-i-looking-for/#findComment-828892 Share on other sites More sharing options...
Ken2k7 Posted May 7, 2009 Share Posted May 7, 2009 Actually I'm not sure it will. It's a radio stream so it wouldn't really put out any data, does it? Link to comment https://forums.phpfreaks.com/topic/157270-solved-what-am-i-looking-for/#findComment-828893 Share on other sites More sharing options...
EchoFool Posted May 7, 2009 Author Share Posted May 7, 2009 The stream itself is a asx file which is seperate but theres a html file linked with it which updates every 3 minutes to say the song name and artist name, the html is blank par that display so i need to grab that info from the html file to assign them into variables to place on my radio player where i see fit in php if that makes sense? Link to comment https://forums.phpfreaks.com/topic/157270-solved-what-am-i-looking-for/#findComment-828895 Share on other sites More sharing options...
Ken2k7 Posted May 7, 2009 Share Posted May 7, 2009 Well if the HTML file actually has the song name and artist name in the source, then yes, cURL would be the way to go. Link to comment https://forums.phpfreaks.com/topic/157270-solved-what-am-i-looking-for/#findComment-828900 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.