试图确定一个流是否是活动的PHP

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

This works:

<?php

    ini_set('default_socket_timeout', 1);

    if(!$fp = @fopen("http://86.28.144.85:88/broadwave.m3u?src=1&rate=1", "r")) {
        echo "no stream";
    } else {
        echo "streaming";
        fclose($fp);
    }

?>