I have written a Java 2D game. It has local and global scores. Local scores were handled, but for global scores, I need to connect to a PHP script.
Script is simply like this:
http://myserver.com/highscore.php?action=submit&name=NAME&score=SCORE&
I can read scores with stream readers, but I can't send new scores to server. I've been looking into outputstreams, but I couldn't handle it.
I also checked this link: http://www.iismarconi.net/inside/materiale/java/tutorial/networking/urls/readingWriting.html
But no dice.