With PHP, I used to store all visitor stats (i.e. their IP, OS, browser details etc.) in a MySQL database but setting of a DB isn't that practical so I wanted a more quick and easy method so I switched to writing to txt files. Thats too crude so recently I started writing to XML files. Works very well. An excellent balance between efficiency and practicality.
I want to get my java applets to log visitor stats too but I'm wondering what the best way to do that is. Right now I'm getting the applet to write cookies then getting PHP to retrieve them but thats silly. Would the best way to do this be to just write to XML files or are there better ways to do it with java?