PHP:Show Online/Offline Server Status

In this article we will learn how to created online/offline server status, mostly this php code function used in gaming site to show server available or not. In my emulate site I was created sample php snippet code to show server online/offline.

Click here to read sample code in txt format.

All you need is just this sample code:

<?
$ip = “this.ismy.ip.number”;
$port = “portnumber”;

if ([email protected]($ip,$port,$ERROR_NO,$ERROR_STR,(float)0.5))
{
fclose($check);
echo “MY OWN SERVER<br>”;
echo “<img border=’0′ src=’images/online.jpg’ alt=’ONLINE’>”;
}
else
{
echo “MY OWN SERVER<br>”;
echo “<img border=’0′ src=’images/offline.jpg’ alt=’OFFLINE’>”;
}
?>

Sample result:

ress

Just that! really simple right? he he he.. you can costumize and added anything to make it more beauty. Anyway if you like to play games or bored with life *lol* come to my emulate site www.nexmutk.com and play games together.

Done, Have a good day 😀

Similar Posts:

7 thoughts on “PHP:Show Online/Offline Server Status”

  1. servidores minecraft español

    Hi there to all, how is all, I think every one is getting more from this website, and
    your views are fastidious in support of new people.

  2. minecraft server list

    Heya i am for the first time here. I found this board and I find
    It truly useful & it helped me out much. I hope to give something back and aid others like
    you helped me.

  3. Every weekend i used to pay a quick visit this web site, for the
    reason that i want enjoyment, since this this web page conations genuinely good funny
    stuff too.

  4. Pingback: Google

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.