Skip to main content
gamedev.net
🔒 Locked

[java] Save hiscor on a server.

Started by Peter Svensson Dec 13, 2001 at 5:05 AM 2 replies 400+ views
Original Post
Peter Svensson
Peter Svensson
Hi! Anyone knows how to save a hiscore list over the internet in java? We want to have only one "central" hiscore list. We are going to create an account on angelfire or somthing for the hiscore so the access security isnt a problem for us... Code or any suggestions are wellcomed... // Peter - Thanx!
Torn Space
Torn Space
We''ve done it 2 ways, there are probably more.

1. TCP: open up a socket and send the score.
2. HTTP: send the score to a webserver using a special URL string

-M
Jim_Ross
Jim_Ross
I would open an http connection to a php script. Speaking a simple protocol to the script, or using xml-rpc to send information about the score and the player''s name. Tossing in some sort of authentication token could stifle cheating. The web server script could easily access a database or falt file and save the information.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.