Please help Iam new user here

How to save text or variable in the flash into text file through php or other to store a score.
Please help Iam new user here.