Trying to determine if a stream is active php
<p>I have the link to 2 audio streams</p>

<p><a href="http://82.35.172.112:88/broadwave.m3u?src=1&amp;rate=1" rel="nofollow">http://82.35.172.112:88/broadwave.m3u?src=1&amp;rate=1</a>
and
<a href="http://86.28.144.85:88/broadwave.m3u?src=1&amp;rate=1" rel="nofollow">http://86.28.144.85:88/broadwave.m3u?src=1&amp;rate=1</a></p>

<p>I need to find out which one is playing and then swap text etc. on the page</p>

<p>I've tried various different ways using fopen, fsockopen, curl to check, but nothing has worked</p>

<p>below is my latest try</p>

<pre><code>$fp = fsockopen("82.35.172.112:88/broadwave.m3u?src=1&amp;;rate=1", 88, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)&lt;br /&gt;\n";;
}else{
echo "stream is there";

}
fclose($fp);
</code></pre>

<p>Any help is appreciated</p>
