Server Monitor Problem
#4

The PHP code I use is this:
PHP код:
// be sure to include the api before this, not the RCON API but the normal API. - I made the same mistake before by using the RCON API
$query = new SampQueryAPI('176.31.142.113''7777');
$aInformation $query->getInfo();
if(
$query->isOnline()) {
    
// server is online, show the iframe here
} else {
    
// server is offline, show an offline message here

Reply


Messages In This Thread
Server Monitor Problem - by Michael B - 29.04.2015, 16:48
Re: Server Monitor Problem - by Jimmy0wns - 29.04.2015, 16:54
Re: Server Monitor Problem - by Michael B - 29.04.2015, 17:19
Re: Server Monitor Problem - by Jimmy0wns - 29.04.2015, 17:25
Re: Server Monitor Problem - by Abagail - 29.04.2015, 21:15
Re: Server Monitor Problem - by Michael B - 30.04.2015, 03:16
Re: Server Monitor Problem - by BroZeus - 30.04.2015, 04:58
Re: Server Monitor Problem - by Michael B - 30.04.2015, 08:31

Forum Jump:


Users browsing this thread: 1 Guest(s)