ok i got this code:

PHP Code:
<html>
<head>
<title> PHP Test Script </title>
</head>
<body>

<?php 
$ip 
"(wont show)"
$port "(wont show)"
if (! 
$sock = @fsockopen($ip$port$num$error5)) 
echo 
'<B><FONT COLOR=red>Offline</b></FONT>'

else{ 
echo 
'<B><FONT COLOR=lime>Online</b></FONT>'
fclose($sock); 

?>

</body>
</html>


somehow when i try it, it doesnt do what its supposed to do, it shows this:

PHP Code:
Offline'; else{ echo 'Online'; fclose($sock); } ?> 

how can i fix?