Jump to content
  • 0

Server online and offline statistics


mightydok

Question

6 answers to this question

Recommended Posts

  • 0

Qstat support ASE servers, sample:

qstat -xml -eye 127.0.0.1:22003

<?xml version="1.0" encoding="iso-8859-1"?>
<qstat>
       <server type="EYE" address="127.0.0.1:22003" status="UP">
               <hostname>127.0.0.1:22003</hostname>
               <name>CTK MTA Assault Server</name>
               <gametype>Assault</gametype>
               <map>as-dam</map>
               <numplayers>0</numplayers>
               <maxplayers>64</maxplayers>
               <ping>31</ping>
               <retries>0</retries>
       </server>
</qstat>

Link to comment
  • 0

I have a small example for your here:

<?php
$ip = "ip.ip.ip.ip" ;   // Enter IP here
$port = "port";        // enter port here:
 
$_GET['ip']="$ip:$port";
$array=explode(':',$_GET['ip']);
$fp = @fsockopen($array[0], $array[1], $errno, $errstr,1);
elseif($fp){            
$status = "<font color=\"green\">online</font>";
fclose($fp); // Close connection since we dont need it anymore.
}
else{              
$status = "<font color=\"red\">offline</font>";
}
echo $status;
?>

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...