gsQuery project is a PHP library that can query various game servers.
It allows you to query various game servers for things like number of players, the players itself, current map, etc. It also includes a ready to use example for non-PHP-aware people.
Games supported by "gsQuery":
· Unreal Tournamnet and most mods (gameSpy)
· Unreal Tournamnet 200x and most mods (gameSpy)
· Battlefield 1942 and most mods (gameSpy)
· Halflife and most Mods (hlife)
· America's Army (armyGame)
· Quake 3 and some Mods (q3a)
· Star Trek: Elite Force (q3a)
· Medal of Honor Allied Assault (q3a)
· MoHAA: Spearhead/Breakthrough (mohs)
· Return to Castle Wolfenstein (q3a)
· Vietkong (vietkong)
· Rainbow Six: Raven Shield (rvnshld)
· Call of Duty (q3a)
· Battlefield Vietnam (gameSpyQ)
· Quake 2 and most mods (q2)
· Kingpin (q2)
· Sin (q2)
· Farcry (farCry)
· IGI2: Covert Strike (igi2)
· Jedi Knight 3 (q3a)
· Solider of Fortune 2 (sof2)
· Far Cry (farCry)
· Quake 2 (q2)
· Kingpin (q2)
· Heretic 2 (q2)
· Halo (halo)
· Deus Ex (deuxEX)
· Doom 3 (d3)
· Halflife 2 (hlife2)
· CS:Source (hlife2)
· Savage: The Battle For Newerth (savage)
· StarWars BattleFront (gameSpy)
· And probably more
Requirements:
· PHP >= 4.2
· PHP Socket support
· A provider that allows inbound/outbound UDP traffic
What's New in This Release:
· Support for Call of Duty added
· Support for Battlefield Vietnam added
· Support for Solider of Fortune 2 added
· Colortags in the q3a protocol can be converted to html
· UT2004 colortags can be converted to html
· hlife nextmap does work now
· hlife gameversion added
· q2a maplist fix
· q3a and hlife rcon command support
· Preventing some uninitialized values
· Added a simple example
· Added serialization/deserialization methods
· Fetching serialized objects via HTTP
· Various other minor fixes
Product's homepage