wood burning stoves 2.0*
The moose likes Applets and the fly likes Writing to a web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Writing to a web server" Watch "Writing to a web server" New topic

Writing to a web server

Bob Chad

Joined: May 20, 2010
Posts: 19

I have a question about writing a file to my web server. I understand I cannot do this directly.
So I use a PHP script that is called by my applet. I've tried 2 methods, but none are satisfactory.

The first is to pass the content of the file to write using the PHP ?param= option. It works, But if param is too long, I get a 414 Error by the server saying the url is too long. So that's no good.

The second is to call the script for every line written, It works, but this is very very slow.

I'm running out of ideas. Could you please help

I would like to keep it simple.


Here my Applet method to run the PHP script

and the php script

Don't get me started about those stupid light bulbs.
subject: Writing to a web server
Similar Threads
get value on click from table using javascript
Not able to create textFile in server using php - urgent
No connection to database from JApplet on Web page
Basic instructions for setting up/running mySQL
problem passing text from php to java via HTML param tag.