Conrad : mail fr uk
[Game]Server_Infos

Description :

GameServer_Infos (GSI) is a set of two PHP 4 classes (not tested on PHP5) that retrieve and parse data (infos/rules/players) from a Quake 3 or HL1/CS & HL2/CSS (source) server. Each class contains many functions and variables for maximum freedom and flexibility of use. Moreover classes support send of rcon commands (not supported in HL2 though)

Classes are released with many scripts exemples and manual.

Note: Sockets are often forbidden or port range very reduced on free hosting. Take care of this.

2008: Classes are not supported anymore. HL2/Source port may be broken anytime due to protocol modification.
07/2007: 2.1a version fixes a bug causing parsing of HL2 servers as HL1 servers

Note that Rcon for HL2/CSS is not supported. If you implement it, contact me, I'd be glad to include it in the release.


Demo :

Server (ip:port) :  
connectandparse($_REQUEST['ip']); ?>
Variable
Value
serv_infos);$i++) { echo '
'; echo '
' . $gameserver->serv_infos[$i][1] . '
'; echo '
' . $gameserver->serv_infos[$i][2] . '
'; echo "
\n"; } // loop : rules for ($i = 0;$i < count($gameserver->serv_rules);$i++) { echo '
'; echo '
' . $gameserver->serv_rules[$i][0] . '
'; echo '
' . $gameserver->serv_rules[$i][1] . '
'; echo "
\n"; } ?>
Players : ' . $gameserver->serv_players_nb . '/' . $gameserver->get_info('maxplayers','nc') . "

\n"; ?>
Player
Frags
serv_players);$i++) { echo '
'; echo '
' . $gameserver->serv_players[$i][0] . '
'; echo '
' . $gameserver->serv_players[$i][1] . '
'; echo "
\n"; } ?>
Valid XHTML 1.0! Valid CSS