I\/Ir Beefie Posted April 2, 2008 Report Posted April 2, 2008 I'm wondering if anyone knows how I can add the current population, average population, etc to a website. I want it to list Current Population = 21 , Average Population = 54... etc.
Bak Posted April 2, 2008 Report Posted April 2, 2008 use PHP to ping the zone's ip address and parse the packet that's sent back
Smong Posted April 2, 2008 Report Posted April 2, 2008 Have a look at one of these:http://stats.trenchwars.org/index.php?a=displayhttp://stats.17thparallel.com/index.php?a=display
I\/Ir Beefie Posted April 2, 2008 Author Report Posted April 2, 2008 I've tried those Smong, it won't work for me.. or else I just dont know what to do. Bak, mind explaining that in english so I can understand?
CRe Posted April 2, 2008 Report Posted April 2, 2008 <?php $currentpop = file_get_contents('http://stats.trenchwars.org/index.php?a=display&id=[ZONEIDHERE]'); echo($currentpop); ?> Whats not to get? Or you can use GoldEyes' php ping class. http://wiki.minegoboom.com/index.php/PHP_ping_client
»Lynx Posted April 2, 2008 Report Posted April 2, 2008 I don't get it either, but I don't know much about web development... I've been working on some pretty good flash stuff though, and would like to try and incorporate this..
Recommended Posts