Hi guys,
I'm a C++ programmer, and I have created a game which has a client/server
architecture. What I would like to do is have my web page show if the
server is up and how many people are logged in at the time. Every five
minutes or so, I'd like for the web page to ping for the server, and if the
server is up, it should return a packet with the population number, which I
can then display on the front page. If there is no response from the server
(in, say, 5 seconds), then the page should show it as down.
Unfortunately, I'm a horrible php coder :) I can handle the server end code
no problem, as long as I know what to send such that the php code can read
it. What I don't know is how to send the initial request from the web page
to the server.
Both my web page and my server have fixed IP addresses. My page has a MySQL
database that I could use to store the information between pings if that
helps. Is it possible to do what I'm after with the tools I have?
Any advice/tips/links?
Thanks -Ron