![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 214
Rep Power: 0
![]() |
Uploading to my webspace
Alright so my tetris game is done. Now I want to add a little "bang" to the game. So I came up with a great idea. I just need your help in telling me if this is possible and can be done in Java. Here's how my idea plays out.
So you go to this website, which I created from cogeco and your able to play tetris through an applet. So far This can be done. Now on the website I want to have a highscore list for "top ten highscores". Now depending on if your score is good enough, I want to be able to upload this score to my website and update the highscore page (what do I use to do this? php? just a guess.). or can java do this? Note: I'm really bad at this website stuff. But I know this much. I update my website through FTP using "FileZilla", where I can add a .html file to my folder online. However, is it possible for a java applet/ application to be able to connect to this website and update it? I'm a complete noob at this website stuff, so any help would be greatly appreciated. Just put it this way, before yesterday I didn't even know how upload to my website.
__________________
Death smiles at us all. All a man can do is smile back. |
|
|
|
|
|
#2 |
|
Expert Programmer
|
The easiest way to go about this would be to have the Java applet store and update the high scores in a text file. A PHP (or other server-side language) script could read from this file and extract the data to display on the website.
|
|
|
|
|
|
#3 | |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 214
Rep Power: 0
![]() |
Quote:
__________________
Death smiles at us all. All a man can do is smile back. |
|
|
|
|
|
|
#4 | |
|
Expert Programmer
|
Quote:
As for doing your high scores bit, the way titaniumdecoy recommended is the best for your situation. I was thinking db, but thats too much. |
|
|
|
|
|
|
#5 |
|
Expert Programmer
|
A possible way to circumvent this problem would be to save only the highest score in a text file, and include it on the webpage you want to display it on using SSI. This may or may not work, but it's worth a shot.
|
|
|
|
|
|
#6 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Quote:
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|