aspose file tools*
The moose likes Applets and the fly likes Applet/PHP/MySQL problems! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet/PHP/MySQL problems! " Watch "Applet/PHP/MySQL problems! " New topic
Author

Applet/PHP/MySQL problems!

Anton Westbergh
Greenhorn

Joined: Mar 24, 2004
Posts: 5
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

Joined: Mar 24, 2004
Posts: 5
And AppletContext.showDocument() isn't an option, since it shows the whole URL to the user..
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Anton Westbergh
Greenhorn

Joined: Mar 24, 2004
Posts: 5
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet/PHP/MySQL problems!