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

The server appears to be down, gamestat.txt has not been updated in more than 5 seconds (last update: June 26 2014 14:40:05).