PDA

View Full Version : Help With Server Status


reflax
Wed 21st Apr '04, 10:09am
Alright, I work with about 5 others to develop a gaming server for an online game, and we are looking to run a status page to show which servers are up, and which servers are down. I made a PHP file to detect wiether teh server is up or down, but i would also like to use the same method to detect the ammount of current connections to the server.

It will run on port 9601, is this posable>

sirspot
Mon 17th May '04, 11:28am
Use a TCP or UDP socket connection from your PHP script to your server and allow it to query that data directly...you can also get great game stats this way! Take a look at the PHP kit for wiretap if you need a good example of how to use PHP for socket connections.

-Adam

http://wiretap.stetson.edu