Od razu powiem, że dopiero zaczynam zabawę z php.

Mam problem, mianowicie wyskakuje mi taki błąd.
Chciałbym go wyeliminować.

"Warning: fsockopen() [function.fsockopen]: unable to connect to s5radiohostpl:8866 in /var/www/sites/yoyo.pl/f/o/formix/killer1236/killer1236.php on line 24"

http://www.formix.yoyo.pl/killer1236/killer1236.php

Oto mój kod:

Kod
<html>
  <hea
<meta name="generator" content="WebSite PRO 4.3" />
  <meta http-equiv="Content-Language" content="pl">

         <link rel="stylesheet" href="style.css" type="text/css">
    <!-- ashel.xorg.pl  -->
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
    <meta http-equiv="Refresh" content="60" />
    <link rel="stylesheet" href="staty.css" type="text/css">
  </head>


<?
  
   $sc[ip]       =   s5.radiohost.pl;
   $sc[port]     =   8866;

   $sc[table1]   =   "<b>[dj][status]</b>";
   $sc[table2]   =   "<b>[audycja][status]</b>";
   $sc[table3]   =   "<b>[nuta][status]</b>";
   $sc[table4]   =   "<b>[ile]</b>";

if($fp = fsockopen($sc[ip] , $sc[port]))
{
fputs($fp,"GET /index.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
fgets($fp);fgets($fp);fgets($fp);
       while(!feof($fp)) $in.=strip_tags(fgets($fp));
fclose($fp);
  # echo $in;

//  [status]
   $m[0]="Server is currently";
   $m[1]="";
   $mp[0]=strpos($in,$m[0]);
   $mp[1]=@strpos($in,$m[1]);
   $ml[0]=strlen($m[0]);
   $ml[1]=strlen($m[1]);

   $tmp[1]=explode( " " , trim( substr( $in , $mp[0] + $ml[0] , 5 ) ) );

   if( $tmp[1][0] == "up" )
       $dat[status] = "";
   elseif( $tmp[1][0] == "down" )
       $dat[status] = "Brak Audycji";
   else
       $dat[status] = "";

   if($dat[status]=="")
   {

//  [audycja]
       $m[0]="Stream Title:";
       $m[1]="Content Type:";
       $mp[0]=strpos($in,$m[0]);
       $mp[1]=strpos($in,$m[1]);
       $ml[0]=strlen($m[0]);
       $ml[1]=strlen($m[1]);

       $tmp[1]=trim( substr( $in , $mp[0] + $ml[0] , $mp[1]-$mp[0]-$ml[1] ) );

       if( $tmp[1] ) $dat[audycja] = $tmp[1];
       else $dat[audycja] = "";

   //  [dj]
       $m[0]="Stream Genre:";
       $m[1]="Stream URL:";
       $mp[0]=strpos($in,$m[0]);
       $mp[1]=strpos($in,$m[1]);
       $ml[0]=strlen($m[0]);
       $ml[1]=strlen($m[1]);

       $tmp[1]=trim( substr( $in , $mp[0] + $ml[0] , $mp[1]-$mp[0]-$ml[1]-2 ) );

       if( $tmp[1] ) $dat[dj] = $tmp[1];
       else $dat[dj] = "";

   //  [statyw]
       $m[0]="Stream AIM:";
       $m[1]="Stream IRC:";
       $mp[0]=strpos($in,$m[0]);
       $mp[1]=strpos($in,$m[1]);
       $ml[0]=strlen($m[0]);
       $ml[1]=strlen($m[1]);

       $tmp[1]=trim( substr( $in , $mp[0] + $ml[0] , $mp[1]-$mp[0]-$ml[1] ) );

       if( $tmp[1] ) $dat[statyw] = $tmp[1];
       else $dat[statyw] = "pilot";

   //  [gg]
       $m[0]="Stream ICQ:";
       $m[1]="Stream AIM:";
       $mp[0]=strpos($in,$m[0]);
       $mp[1]=strpos($in,$m[1]);
       $ml[0]=strlen($m[0]);
       $ml[1]=strlen($m[1]);

       $tmp[1]=trim( substr( $in , $mp[0] + $ml[0] , $mp[1]-$mp[0]-$ml[1] ) );

       if( $tmp[1] ) $dat[gg] = $tmp[1];
       else $dat[gg] = "";

   //  [ile]
       $m[0]="kbps with";
       $m[1]="listeners";
       $mp[0]=strpos($in,$m[0]);
       $mp[1]=strpos($in,$m[1]);
       $ml[0]=strlen($m[0]);
       $ml[1]=strlen($m[1]);

       $tmp[1]=explode( " " , trim( substr( $in , $mp[0] + $ml[0] , $mp[1]-$mp[0]-$ml[1]-2 ) ) );

       if( $tmp[1] ) $dat[ile] = $tmp[1][0];
       else $dat[ile] = "";

     //  [peak]
       $m[0]="Listener Peak:";
       $m[1]="Average";
       $mp[0]=strpos($in,$m[0]);
       $mp[1]=strpos($in,$m[1]);
       $ml[0]=strlen($m[0]);
       $ml[1]=strlen($m[1]);

       $tmp[1]=trim( substr( $in , $mp[0] + $ml[0] , $mp[1]-$mp[0]-$ml[1]-7) );

       if( $tmp[1] ) $dat[peak] = $tmp[1];
       else $dat[peak] = "";

//  [nuta]
       $m[0]="Current Song:";
       $m[1]="Written by Ste";
       $mp[0]=strpos($in,$m[0]);
       $mp[1]=strpos($in,$m[1]);
       $ml[0]=strlen($m[0]);
       $ml[1]=strlen($m[1]);

       $tmp[1]=trim( substr( $in , $mp[0] + $ml[0] , $mp[1]-$mp[0]-$ml[1] ) );

       if( $tmp[1] ) $dat[nuta] = $tmp[1];
       else $dat[nuta] = "";

   }
}
else
{
   $dat=array();
   $dat[status]="err";
}

$co           =   array('[status]','[audycja]','[dj]','[statyw]','[gg]','[ile]','[peak]','[nuta]');
$naco         =   array($dat[status],$dat[audycja],$dat[dj],$dat[statyw],$dat[gg],$dat[ile],$dat[peak],$dat[nuta]);
$sc[table1]   =   str_replace($co,$naco,$sc[table1]);
$sc[table2]   =   str_replace($co,$naco,$sc[table2]);
$sc[table3]   =   str_replace($co,$naco,$sc[table3]);
$sc[table4]   =   str_replace($co,$naco,$sc[table4]);

?>
<!-- Save for Web Slices (killer1236.psd) -->
<table id="Tabela_01" width="521" height="120" border="0" cellpadding="0" cellspacing="0" background="ja.jpg">
       <tr>
              <td colspan="3" width="371" height="29"></td>
              <td colspan="5" rowspan="3" width="149" height="54"><a href="http://s5.radiohost.pl:8866/listen.pls"><img src="images/formi_02.jpg" width="149" height="54" alt=""></a></td>
              <td width="1" height="29"></td>
       </tr>
       <tr>
              <td rowspan="7" width="210" height="91"></td>
              <td width="143" height="13"><font color="white"><MARQUEE width="143" SCROLLAMOUNT=2 height="13" ><? echo $sc[table1]; ?></MARQUEE></font></td>
              <td rowspan="7" width="18" height="91"></td>
              <td width="1" height="13"></td>
       </tr>
       <tr>
              <td rowspan="2" width="143" height="22"></td>
              <td width="1" height="12"></td>
       </tr>
       <tr>
              <td colspan="5" rowspan="2" width="149" height="23"></td>
              <td width="1" height="10"></td>
       </tr>
       <tr>
              <td width="143" height="13"><font color="white"><MARQUEE width="143" SCROLLAMOUNT=2 height="13" ><? echo $sc[table2]; ?></font></MARQUEE></td>
              <td width="1" height="13"></td>
       </tr>
       <tr>
              <td width="143" height="20"></td>
              <td rowspan="3" width="11" height="43"></td>
              <td rowspan="3" width="65" height="43"><a href="http://s5.radiohost.pl:8866/listen.pls"><img src="images/formi_11.jpg" width="65" height="43" alt=""></a></td>
              <td rowspan="3" width="2" height="43"></td>
              <td rowspan="3" width="66" height="43"><a href="http://s5.radiohost.pl:8866/listen.pls"><img src="images/formi_13.jpg" width="66" height="43" alt=""></a></td>
              <td rowspan="3" width="5" height="43"></td>
              <td width="1" height="20"></td>
       </tr>
       <tr>
              <td width="143" height="12"><font color="white"><MARQUEE width="143" SCROLLAMOUNT=2 height="13" ><? echo $sc[table3]; ?></font></MARQUEE></td>
              <td width="1" height="12"></td>
       </tr>
       <tr>
              <td width="143" height="11"></td>
              <td width="1" height="11"></td>
       </tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>