My Friend made an mmorpg he decided to make a code so the users could tell when the game server was running
this codoe has many other uses to like monitor a website or w/e you want to do
<?
$ip = "youriphere";
$port = "yourporthere";
if (! $sock = @fsockopen($ip, $port, $num, $error, 5))
echo '<B><FONT COLOR=red>Offline</b></FONT>';
else{
echo '<B><FONT COLOR=lime>Online</b></FONT>';
fclose($sock);
}
?>
-open a text editor like notepad
-Put this code in your <Body> of index.html or w/e page you are using
-after you finish adding the code make sure you set the port and IP
-and when you add all the data save your file as index.php
-upload the file
-Finished ~ your server status is set ~