Witam
Może mi ktoś wytłumaczyć dlaczego występują te błędy?

Skrypt znalazłem w sieci, nie zmieniałem nic oprócz IP i portu
używam vertrigo, a plik nazwałem index.php
<?php
if (!$server) {
$server_ip = "178.20.168.72"; // ik typte gewoon wat in
$server_port = "12203"; // ik typte gewoon wat in
} else {
$server_ip = $server[0];
$server_port = $server[1];
}
// Do NOT change anything below this line!
// Creating the URL for the connection:
$server_ip = "udp://" . $server_ip;
// Open the connection:
$connect = fsockopen($server_ip, $server_port, $errno, $errstr, 30
);
// Set the timeout:
// Get the information from the server, and put it into the $output array:
$send = "?
?" . chr
(0x02) . "getstatus"; $output = fread ($connect, 1
); do {
$output = $output . fread ($connect, 1
); } while ($status_pre[unread_bytes] != $status_post[unread_bytes]);
};
// Close the connection:
// Select the variables from the $output array:
$max_clients = $output[$max_index+1];
$mapname = $output[$max_index+1];
$hostname = $output[$max_index+1];
$gametype = $output[$max_index+1];
$last_value = count($output) - 1; $players_string = $output[$last_value];
$players_string = explode("\"", $players_string);
$get_first_ping = explode("\n", $players_string[0
]); $players_string[0] = $get_first_ping[1];
$i = 1;
$players = 0;
while (count($players_string) != $i) { $i++;
$i++;
$players++;
}
// Create the image url:
if (substr($mapname, 0, 3) == "dm/") { } else {
}
$picture_src = "images/" . $picture_src . ".jpg";
// Start the output:
?>
<html>
<head>
<title><?=$hostname?></title>
</head>
<body>
<table width="600" border="0" align="center">
<caption><b><?=$hostname?></b></caption>
<tr>
<td width="256" valign="top" bgcolor="#a3a379">
<table border="0">
<tr>
<td bgcolor="#939164" width="256">Game: <?=$gametype?><td>
</tr>
<tr>
<td bgcolor="#939164" width="256">Players: <?=$players?>/<?=$max_clients?></td>
</tr>
<tr>
<td bgcolor="#939164" width="256">Map: <?=$mapname?></td>
</tr>
<tr>
<td bgcolor="#939164" width="256"><img src="<?=$picture_src?>"></td>
</tr>
</table>
</td>
<td valign="top" bgcolor="#a3a379">
<table border="0">
<tr>
<td bgcolor="#939164" width="300">Player name:</td>
<td bgcolor="#939164" width="44">Ping:</td>
</tr>
<?
$i = 1;
while (count($players_string) != $i) { $j = $i -1;
?>
<tr>
<td bgcolor="#939164" width="300">
<?=$players_string[$i]?>
</td>
<td bgcolor="#939164" width="44">
<?=$players_string[$j]?>
</td>
</tr>
<?
$i = $i + 2;
}
?>
</table>
</td>
</tr>
</table>
</body>
</html>
<?
?>