Saving string and var to php/html/xml file?

At the end of my game I display the users name as a string and score as a variable, would there be any way to send these two pieces of info outbound to display in an html file?

I’ve found some things on XML files but I’m not too sure what thats all about.

My ultimate goal is to have each users name and score sent to a file which sorts them, highest score at the top. Then each time the page is refreshed the new scores would appear in the right order.

Thank you,
j33k, formerly frosty incase anyone remembers me