Soldat gamestat.txt PHP Reader

Soldatserver maintains a file called gamestat.txt in the logs directory that contains basic server information such as the game mode, map, number of players, time left in the round, and the player details. This file is updated automatically by soldatserver every five seconds, so it provides nearly live information about the server. These PHP functions provide a way to read this log file and nicely display it on your webpage.

Usage

Example

Select a file

gamestat-ctf.txt (Show array)
gamestat-dm.txt (Show array)
gamestat-holdtheflag.txt (Show array)
gamestat-infiltration.txt (Show array)
gamestat-pointmatch.txt (Show array)
gamestat-rambomatch.txt (Show array)
gamestat-rpgdn-ctf.txt (Show array)
gamestat-teammatch.txt (Show array)