Is there any easy way(without using mySQL database) to do High score system for a flash game?

1) Post the scores(Post_Scores.php)
2) Load the top 10 scores(Scores_DB.php)

I've done a tiny game using flash(ActionScript), now I need little help from you guys to store and load 10 best scores using php. Need help, please.

Thanks in advance!

-GM

    store the scores in a plain text file using
    [man]fopen[/man]
    [man]fread[/man]
    [man]fwrite[/man]
    (a database would be better)

      why do you think the DB is better? I know that's more seucre and all, but is there any other positive reasons? 🙂

      If mySQL is the best choice then can you show me a way to do that, pls?

      thanks!

        Originally posted by goaman
        why do you think the DB is better? I know that's more seucre and all, but is there any other positive reasons?

        what happens when 2 people are trying to post a score to the text file at the exact same time? with a plain text file, the file is locked while one person is writing to it. with a db, the queries are efficiently queued and executed. on a very low traffic site i suppose this would be a non issue.

          hey.... yes, thats true... 🙂

          Is there any PHP examples which shows how to write scores(string/integers) to the MySQL DB?

          Thanks in advance..

            Write a Reply...