Server Monitor Problem
#6

Quote:
Originally Posted by Jimmy0wns
Посмотреть сообщение
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

Is that for the class_query file?
What webhost are you using?

@Abagail: I know, I have a special premade plugin as server monitor, and I cannot use it just because of their " security" . Probably they are blocking the connection with their firewall.
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)