Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 18th, 2006, 5:14 PM   #1
Eric the Red
Hobbyist Programmer
 
Eric the Red's Avatar
 
Join Date: Feb 2006
Posts: 214
Rep Power: 0 Eric the Red is an unknown quantity at this point
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.
Eric the Red is offline   Reply With Quote
Old May 18th, 2006, 11:35 PM   #2
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 903
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
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.
titaniumdecoy is offline   Reply With Quote
Old May 19th, 2006, 1:15 AM   #3
Eric the Red
Hobbyist Programmer
 
Eric the Red's Avatar
 
Join Date: Feb 2006
Posts: 214
Rep Power: 0 Eric the Red is an unknown quantity at this point
Quote:
Originally Posted by titaniumdecoy
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.
Thanks a lot. Now i'm with cogeco internet and I get 10 mb web space. One of my friends have told me that they may not allow me to use PHP, does that make any sense to you? Because apparently that may charge you extra money.
__________________
Death smiles at us all. All a man can do is smile back.
Eric the Red is offline   Reply With Quote
Old May 19th, 2006, 1:26 AM   #4
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Quote:
Originally Posted by Eric the Red
Thanks a lot. Now i'm with cogeco internet and I get 10 mb web space. One of my friends have told me that they may not allow me to use PHP, does that make any sense to you? Because apparently that may charge you extra money.
Yup, the sounds about right. ISP's sometimes give you a certain amount of free web space, but rarely give you php, asp or some language support. If you do, I bet they would charge you for it, in which case, you might as well spring for a website hosting package somewhere else.

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.
Booooze is offline   Reply With Quote
Old May 19th, 2006, 2:51 AM   #5
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 903
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
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.
titaniumdecoy is offline   Reply With Quote
Old May 19th, 2006, 4:40 AM   #6
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by titaniumdecoy
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.
Or just get another host that does support PHP, there are plenty around that are free too. Check this out.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:00 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC