Curl might be overkill for that. You can use file_get_contents for the same thing. It should work.
example PHP code. You would have to send the artist and title from the web exporter. You would fill in your partnerkey, partnerid and stationid in the URL.
<?php
$artist = urlencode(stripcslashes($_POST["artist"]));
$title = urlencode(stripcslashes($_POST["title"]));
$url = "http://air.radiotime.com/Playing.ashx?partnerId=<id>&partnerKey=<key>&id=<stationid>&title=".$title."&artist=".$artist;
file_get_contents($url);
?>
Hi HMC,
I try out the webexport, first the way with the script from Marius to generate default NowPlaying as config in Options, it generate in data.txt the Nowplaying string.
After that i change it to read custom data (see picture) i start up your script and it give the following errors,
Notice: Undefined index: artist in C:\USBWebserver v8.6\root\TuneIn\TuneIn API.php on line 2
Notice: Undefined index: title in C:\USBWebserver v8.6\root\TuneIn\TuneIn API.php on line 3
I don't see anything about the password in that script from you, could that be the problem, i do know nothing from php so i need some help, please.
Greetings Nico.
[attachment deleted by admin]