SA-MP Forums Archive
SAMP Query API PHP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SAMP Query API PHP (/showthread.php?tid=309751)



[Solved]SAMP Query API PHP - CoaPsyFactor - 08.01.2012

Код:
Hi all, and sorry if this is a wrong section.

But could anyone help me with this class. When I call the class (__construct) I insert all needed stuff, and then I go $class->isOnline() for server that is online, but I get false as return.

So I'm wondering if anyone had same problem that is solved, could help me.

Thanks in advance.
It was firewall on my server that made that error


Re: SAMP Query API PHP - JamesC - 08.01.2012

Post what you're doing, also are you hosting the samp server and the apache server on the same machine?


Re: SAMP Query API PHP - CoaPsyFactor - 08.01.2012

Код:
include 'controller/SampQueryAPI.php';
$query = new SampQueryAPI('78.46.79.68', '3022');
var_dump($query->isOnline());
it's not for mine server, it is for global servers and this is just a test


Re: SAMP Query API PHP - JamesC - 09.01.2012

I just fired up my apache server and its returning true. Does it still return false for you? Maybe the server was restarting at the time?