I need Help with my website

09/24/2012 15:17 Silent-Death#16
so basically you're saying the server will connect to the website database and update the status and users online, right? how is that any different from my approach? i was from the get-go considering the website database is updated by the game server and on localhost.

yeah implementing a flag for server status is a must anyway cuz you need to tell people on the website the status of your server.
09/24/2012 15:39 Korvacs#17
lol i think you got abit confused..... I was talking about removing the need for the webserver to communicate with the game server, so that in the event that the server was offline you wouldnt hang up the website for 30 seconds or however long your configuration is set to timeout after.

The solution thats best for this is to make the game server update a local database and then to check when it updated it to determine if the server is online or not, removing the need to attempt to communicate with it directly.
09/24/2012 15:46 Silent-Death#18
:facepalm: lol, i`m assuming that the database the webserver is taking the info out of is already on its localhost, this by default means that the database on the webserver is updated by the game server therefore no website -> game server communication required in the first place.

lmao we can't agree even when we are providing the same solution?
09/24/2012 16:00 Korvacs#19
The original solution requires you connect to the game server in order to display either "Gameserver Online! or "Gameserver Offline!" you didnt really suggest anything to replace this merely ways to reduce timeouts?
09/24/2012 16:03 Tovin#20
i dont no
09/24/2012 16:09 Silent-Death#21
i was assuming the webserver has its own database to begin with, and that the required info is in that database.
i was also assuming the website has a status check variable already since you need to tell your players the status of the server. I also provided a work around the usage of database to check the server status.

as a web based programmer, i dun really give a damn how the info gets in my localhost database, that is the game dev's problem.

i see code from me and just talk from you tho.. i mean you could actually piece up a working page from my posts.

Quote:
Originally Posted by InstantAssassination View Post
Or:

echo '<font style="color: lime"><b>Online</b></font><br />';
}
or maybe you would have preferred i leave this as the last post and solution to the process.
09/24/2012 16:15 Korvacs#22
Im at work i dont have time to put together and test code for this, its fairly straight forward though, you simply query the local database and compare a current timestamp with the one stored if its too old then the server is offline, the rest is simply positioning and layout of the rest of the data associated with that server.
09/24/2012 16:21 Silent-Death#23
or you could load your page with jquery and make a nice loading print out as the connection to the distant database is established, verified and content is grabbed from it.

but why bother when working with the localhost database is in fact the ideal solution.