Hi.
I have a script that needs to be changed from “file_get_contents” to CURL.
Can anyone help me with this? I’m a noob in PHP so any help would be appreciated.
My script;
$stream_url = “http://streams.greenhost.nl:8080/amateurmuziek”;
$xspf_url = $stream_url . “.xspf”;
$xml = file_get_contents($xspf_url);
if($xml){
$data = simplexml_load_string($xml);
// Track artist
print $data->trackList->track->creator;
// Track title
print $data->trackList->track->title;
}