mzimmers
Joined: 06 Oct 2008 Posts: 2
|
Posted: Wed Oct 08, 2008 2:26 am Post subject: Help with a fsockopen call? |
|
|
I'm really new to some of this stuff, so I'd appreciate some assistance here. I pulled this code segment from the Nicecast manual. It's always returning false...can someone give me an idea what I'm doing wrong?
My stream is coming from http://75.25.129.111:8000/listen.m3u.
| Code: |
<?php
function onAirTest($ipaddress, $port)
{
if ($ret = @fsockopen($ipaddress, $port, $errno, $errstr, 1))
{
fclose($ret);
return true;
}
else
{
return false;
}
}
?>
<?php
/*
if (onAirTest("75.25.129.111", "8000"))
{
print "Radio SilverBar Is Currently On The Air";
}
else
{
print "Radio SilverBar Is Currently Off The Air";
} |
Thanks. |
|