[Tool/Web/Other] [PHP] Server Query and RCON API - Be an admin at ease! (16/02/2010)
#61

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 !";
}
?>
Reply
#62

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^^
Reply
#63

nvm works the rcon password was too short i guess
Reply
#64

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
Reply
#65

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

$_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 ....
Reply
#67

Links offline.. :S
Reply
#68

Links are down.
Reply
#69

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

Checkout now, he site is back online..
Reply
#71

Amazing, good job Westie.
5/5
Reply
#72

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?
Reply
#73

How to get the Server ping please ?
Reply
#74

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

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:
Reply
#76

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

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

help please?
Reply
#77

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

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?
Reply
#79

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
Reply
#80

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


Forum Jump:


Users browsing this thread: 1 Guest(s)