Yes, use your third bullet point. The WWW class is documented with an example close to what you want here:
http://docs.unity3d.com/ScriptReference/WWWForm.html
There is an example that writes high scores and a perl script that runs on the server. If you want PHP, then google "how to learn php" and you'll get 572 *million* hits.
↧