ID:529384
 
(See the best response by DarkCampainger.)
Code:
None

Problem description:

I'm curious to know if there is a way to use php, Javascript, or HTML to poll statistics from a BYOND game server. I know the best way to go would probably be world/Topic(), but I'm not quite sure how to use this.

php pseudocode to help you understand the goal I am trying to achieve:
$returnval = topic('byond://ip:port?players');
echo $returnval;


Where the output would be something like:

10
Best response
If you want the external server to initiate the communication, you can simulate a call to world/Topic() using PHP sockets:
http://www.byond.com/forum/?post=276414
(although, it should be noted that this forum post is rather old, and may or may not still be accurate)

However, it may be easier to just have the game periodically send the information you want through world/Export() and have the web server store it.