Is it possible to convert that code
From Php To Html ?
i know it maybe the wrong place but i couldent find a right section for it special that a server state check for sro
Code:
<?php
$ip = '178.63.59.165'; //Server ip adress
$port = '15779'; //Server port
function server_status($ip, $port)
{
$status = array("<strong>Server is:</strong><span style='color:#F00;'>Offline</span>", "<strong>Server is:</strong><span style='color:#0F0;'>Online </span>
");
$fp = @fsockopen($ip, $port, $errno, $errstr, 2);
if (!$fp) {
return $status[0];
}
else
{
return $status[1];
}
}
echo server_status($ip, $port);
?>
From Php To Html ?
i know it maybe the wrong place but i couldent find a right section for it special that a server state check for sro