I'm writing my own RCon application in PHP to send commands to my Garry's Mod server. I would ordinarily use the RCon provided by NFOServers on the Server Control panel, but having this feature on my own website makes matters a lot easier. I am already able to send RCon commands to the server and receive responses.
I looked at the page source on the Server Control page, and found that a request is being made every fraction of a second by javascript to get new log entries from the server (such as player chat) to display on the page in real-time - at least until the console times out from inactivity.
Now, obviously I can't see the server-side code used to make these server queries. So I'm wondering how I could replicate this on a remote website so that I could have the server chat updating in real time, or if it's even possible. I suppose I'm looking for a specific query/command to send to the server in order to get the log information back.
It seems sort of odd to be making a post of this nature here on this forum, but I thought I would have the most luck posting among other server owners/programmers who may have experience with this. Or perhaps some NFOServer folks could give me some pointers, if it's not a big trade secret
