I've never used applets (evil java! die!) but flash has a similar concept so can't you just POST/GET to a PHP file?
You could probably also write to a text file and use cron to run a PHP file that reads the text file every now and again although that'll kill your server.
thats all I got. Did I mention Applets are pure evil?