Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet/PHP/MySQL problems!

 
Anton Westbergh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!
I am quite new, and not very experienced in programming at all.
I am currently making a Tetris-clone, which you can try here:
www.elitris.com
Now to the problem. I have put up a MySQL database, and coded some PHP-pages. I had planned to use these PHP-pages from my applet, to be able to store highscores etc, but it's not working very well.
I don't want to open up new browser windows, since then the user can see the whole adress, and abuse of the highscoresystem will be very common.
I've tried to let my Applet connect to the php-pages via URL and stuff, but nothing seems to work very well.
If you have any experience of Applets, and MySQL-databases, please don't hesitate to answer! I need all help I can get. I've never been in touch with PHP or MySQL before, so this is new ground for me.
I have not been programming for a very long time neither, so please try to go easy with me
Any help is appreciated!
/Anton Westbergh
 
Anton Westbergh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And AppletContext.showDocument() isn't an option, since it shows the whole URL to the user..
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't say if the applet's being downloaded from the PHP server. Java sandbox rules prohibit unsigned applets from accessing servers other than the one they loaded from.
 
Anton Westbergh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The applet is on the same server.
Any id´┐Ża how to solve this?
I fear I will have to get the applet talk with the MySQL database instantly..
Please help!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic