SA-MP Forums Archive
[Tool/Web/Other] [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) (/showthread.php?tid=104299)

Pages: 1 2 3 4 5 6


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - XFlawless - 18.06.2011

Quote:
Originally Posted by Sascha
View Post
how can I check that? (any php code or so? -- using cpanel)
PHP Code:
//Using UDP connection
//The example below shows how to retrieve the day and time from the UDP service "daytime" (port 13) in your own machine. As on PHP website.
<?php
$fp 
fsockopen("udp://127.0.0.1"13$errno$errstr);
if (!
$fp) {
    echo 
"ERROR: $errno - $errstr<br />\n";
} else {
    echo 
"Connection was successful !";
}
?>



Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - Sascha - 18.06.2011

http://sapsgt.net/main/udptest.php
the site stays blank

edit: I've added a "echo "success";" to the "else" part, which shows up apparently..
edit edit: oh I guess you edited the code^^ the new one works fine now^^


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - lolumadd_ - 29.06.2011

nvm works the rcon password was too short i guess


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - Unknown123 - 06.12.2011

Quote:
Originally Posted by Slice
View Post
You might wanna paste the error you get...
error

Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in PATCH/test.php on line 27



Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - lamarr007 - 28.12.2011

Please, how can I create like $_GET($text) and then text will send as adminSay($text) ?


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - CoaPsyFactor - 08.01.2012

$_GET['text'], and adminSay($_GET['text']);

Hi all I have little problem with Query class, looks like it is not working, for every server i try to connect it says isOnline false ....


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - mikiii18 - 14.01.2012

Links offline.. :S


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - robintjeh - 14.01.2012

Links are down.


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - Luka P. - 27.01.2012

bump
Quote:
Originally Posted by robintjeh
View Post
Links are down.



Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - royal_king - 27.01.2012

Checkout now, he site is back online..


Respuesta: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - [DOG]irinel1996 - 27.01.2012

Amazing, good job Westie.
5/5


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - TheArcher - 20.02.2012

Ok, i tried to see the info on my server. When it is offline it says that its offline everything good. When it's online it stores empty query. P.S i've tested on my local host with WAMP. That might be a problem?


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - dydjyz - 21.02.2012

How to get the Server ping please ?


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - toofast - 05.07.2013

I tried to use it for 0.3x, i don't get any error but neither any information like players, hostname, map, etc.


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - God'Z War - 10.07.2013

i got this error on u r serevr signature


here is the code which showing error


Код:
$ip = $_GET["ip"];
$port = $_GET["port"];
error picture:

and i am using sampqueryapi

when i remove $_GET
on the error line like
Код:
$ip = "ip";
$port = "port";
that time i am getting error form sampqueryapi

error:


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - _Application_ - 07.09.2013

https://gist.github.com/Westie/234209

How to create a page that shows the details of my server? ?

help please?


AW: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - Arendium - 28.10.2013

Hej the documentation isn't avaible and i can't see the documentation about getDetailedPlayers


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - Asdelon - 03.06.2014

Hi, i want that the query listing the all of server, not only one ip, because i want that displaying the all players, all servers, all online players and all online\offline servers information. How to start?


Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - Mark_Weston - 05.06.2014

Returns an empty statement for some reason.

http://instantgaming.net/

Код:
Live Server Status General Information
Hostname	
Gamemode	
Players	 /
Map	
Weather	
Time	
Version	
Password	

Online Players
Player ID	Nickname	Score



Re: [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010) - Tisot - 20.08.2014

how can i do that i want Server status on SMF forums!