I have the link to 2 audio streams
http://82.35.172.112:88/broadwave.m3u?src=1&rate=1 and http://86.28.144.85:88/broadwave.m3u?src=1&rate=1
I need to find out which one is playing and then swap text etc. on the page
I've tried various different ways using fopen, fsockopen, curl to check, but nothing has worked
below is my latest try
$fp = fsockopen("82.35.172.112:88/broadwave.m3u?src=1&;rate=1", 88, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />
";;
}else{
echo "stream is there";
}
fclose($fp);
Any help is appreciated