John was quicker to reply. :0
Basically , how our php programmer quickly explained it to me:
You make a request to a php file with all the things you want the php to know. You use loadString as a trick. You request a file or data that will be generated by the php file. The php file can either send something back or not send anything.
For example, you want to send the size and x position of a rect to a php file called myRequest.php.
If you are not expecting a response you write/send once:
Quote:loadString("http://www.mydomain.com/myRequest.php?&size="+ rectSize +"&x="+ rectX);
if you are expecting a responce you write/send once:
Quote:String[] getData;
getData = loadString("http://www.mydomain.com/myRequest.php?&size="+ rectSize +"&x="+ rectX);
Just like if you were opening a txt file from the internet ( see loadString in reference ).
variable rectSize is equal to the size of your rect and variable rectX is equal to the rect x position.
size and x will be understand as variable by the php file.
Then you do the rest is in the php which is another problem, but I am sure you can find how to use the received data and send back somethings.
That system works pretty well and is really quick, But like John said you have to send the request every-time you want the php to know that your variables have been updated. Also remember that the php file and your applet have to be on the same server, because of security reasons.
Hope that helps