Save all player stats in a .txt file
#1

So, I made my top 10 stats in a .txt file, and read them via PHP.
Now a question is this good, or is MySQL better?
I heard that when I use mysql there is often a memory leak, and the top 10 works good.
I also made the banlist with a .txt file and I split the ban file in sites (?page=2 etc)
Reply
#2

Quote:
Originally Posted by Ribber
Посмотреть сообщение
So, I made my top 10 stats in a .txt file, and read them via PHP.
Now a question is this good, or is MySQL better?
I heard that when I use mysql there is often a memory leak, and the top 10 works good.
I also made the banlist with a .txt file and I split the ban file in sites (?page=2 etc)
MySQL is always recommended in any way. As I might warn you with something, make sure to create a Anti SQL-INJECT! Or hackers can be able to access to your players information, and be able to edit their own characters information, etc.

Basically, I recommend MySQL, just add protection to it. Good luck, mate!
Reply
#3

Thanks.
Where do you mean the protection, in PHP or in MySQL (in the script)?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)