1 (edited by dtee 2009-03-07 15:30:39)

Topic: [TOOL] PHP5 server query tool (just simple and easy + master query)

I know that there are other tools like this one out there, but I decided to do a very simple one for my amusement.

Features:
- Query your teeworlds server and play around with the result (e.g. display stats and players on a webpage)
- Query master servers and play around with the result (if you like to...)
- Requires: PHP5

It's as simple as:

$tw = new TeeworldsServer("86.71.199.77", 45968);
if ($tw->queryInfo()) {
        // Play around with $tw->name, $tw->players etc...
}

Better examples than this one are included.

Get it at: http://blog.code-emitter.com/?page_id=214

Have fun ;-)

MELT ME!

2 (edited by khubajsn 2009-03-08 10:48:51)

Re: [TOOL] PHP5 server query tool (just simple and easy + master query)

OOO
dtee - I cant say how much I want to thank you! This is simple PHP5 script which allows windows users to put theyre server-status on them website!! Oo Thank you a lot! If it will not problem for you, I will add the script which will put the result to the image not like the plain text!! Thank you a lot!

Goodbye all. Account inactive since March 2011.

3

Re: [TOOL] PHP5 server query tool (just simple and easy + master query)

Yay my freeze mod big_smile

b2t:
nice script smile
as im currently making a homepage for my mod, this would perfectly fit, to show the status of all my servers
TY wink

[+]

~{MonkeyStyle}~ - Instagib Teeworlds Clan
VISIT US: http://monkeystyle.xooit.com/
Check out our IRC channel: #monkeystyle on QuakeNet || Also check out the TeeWiki: http://teewiki.info

4

Re: [TOOL] PHP5 server query tool (just simple and easy + master query)

I tried this with Teeworlds 0.6.0 and it doesn't work for me. I tried the port initially mentioned in the source code (45968) then 8030 and 8303 but it still doesn't work. I also tried "localhost" just to make sure it's not the firewall causing troubles but it still won't work. Is there a quick fix/update for this?

5

Re: [TOOL] PHP5 server query tool (just simple and easy + master query)

@kneekoo: Use the stuff from this topic. It works as far as I know.

6

Re: [TOOL] PHP5 server query tool (just simple and easy + master query)

kneekoo wrote:

I tried this with Teeworlds 0.6.0 and it doesn't work for me. I tried the port initially mentioned in the source code (45968) then 8030 and 8303 but it still doesn't work. I also tried "localhost" just to make sure it's not the firewall causing troubles but it still won't work. Is there a quick fix/update for this?

The protocol changes in 0.6, mainly to add clan- and country/nationality support.

7 (edited by kneekoo 2011-06-27 02:45:19)

Re: [TOOL] PHP5 server query tool (just simple and easy + master query)

Thanks a lot, guys! smile