PHP polling of servers
#1
I recently had some time to burn; guess what - I turned back to one of my favourite projects - AssaultCube
There were a few threads on this at some point - but, if I recall correctly, they lacked in proper protocol-parsing. Since I still had some experimental code lying about I gave it another stab - this is a pretty basic package, but it should make anybody with a run-of-the-mill webserver happy (PHP is required).
I used jquery and a tablesorter-plugin for it; you get a full list from the masterserver and display the basic stats for it - like the serverbrowser in-game. Extended polling was too experimental for inclusion at this point. Maybe I'll take that up the next time .. whenever that'll be - so: don't hold your breath, do it yourself ;-)
mediafire: 2012may25.ACpoll.PHPandJQUERY.tar.bz (D/L:13.01KB; unpacked:72KB)
P.S.:
I forgot that the jquery file wasn't inside the directory I worked in .. so in addition to the package above (which does contain the tablesorter plugin) you'll need v1.7.2 of jquery (minified: 93KB) and fix up the path to it!
Thanks given by:
#2
Cool, i added this to http://rpg.silvercloud.x10.mx/sc-ms (for my masterserver)
and http://rpg.silvercloud.x10.mx/ac-ms
Thanks given by:
#3
I put something similar of much lower quality, but for python in Pyssaultcube :)

I'll be checking out that script soon.
Thanks given by: