PDA

View Full Version : PHP "pings"


Phantom
04-24-2003, 01:59 AM
I've seen a few scripts here and there (mainly for Jedi Knights II) that will "ping" (for lack of a better term) one of the dedicated game servers and send back a report - IE what the server is doing, who's playing on it, etc.

I was wondering how this is done (since I can't get my hands on any of the scripts :mad: ), so if anyone could explain to me, I'd appreciate it :-)

Edit note: One website that does this is http://www.solarempire.com/servers.php

Ökii
04-24-2003, 09:36 AM
for that one, they require all participating servers to save a server_report.php file to a specific place - their server then simply $var = file('............./server_report.php'); unserialize($var);
which is parsed remotely (reads the remote database and configures the info) before outputting html.

http://www.solarempire.com/server_report.php.txt

subnote: their script blocks any requests not coming from solarempire.com

Galdo
04-24-2003, 11:55 AM
Have a look here (http://www.kquery.com/developer/), it may be of interest to you.

Particularly down the left hand side - the Game Server Query link.