Server Status PHP Help

Discussion in 'Bukkit Tools' started by xCausxn, Sep 18, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    xCausxn

    Hi everyone,
    I am using this code atm but i want to add how many players are online, who they are. All help is appreciated.

    <?php

    $server = "82.165.193.139";
    $port = "26795";
    $port2 = "8123";
    $timeout = "10";

    if ($server and $port and $timeout) {
    $verbinding = @fsockopen("$server", $port, $errno, $errstr, $timeout);
    $ircbinding = @fsockopen("$server", $port2, $errno, $errstr, $timeout);
    }
    if($verbinding) {
    echo "<b>Eco-Craft [Tekkit] is online</b><br>";
    }
    else {
    echo "Eco-Craft [Tekkit] is offline";
    }
    if($ircbinding) {
    echo "<b>Dynmap Map is online</b>";
    }
    else {
    echo "<b>Dynmap Map is offline</b>";
    }
    ?>
     
    breezeyboy likes this.
  2. Offline

    lol768

Thread Status:
Not open for further replies.

Share This Page