This is what I did with the code above and what occurs the security leak. When I have a textfile my game can write to, everybody can and destroy the highscore. It works fine though.
I created now a mySQL database on my server and made two php scripts to add a score and read all scores. It was some way to go, because I did nothing in php or mysql sofar, but finaly I get it to work. I like it and think it is much more secure, because you need username and password to enter the mysql datas.
I created now a mySQL database on my server and made two php scripts to add a score and read all scores. It was some way to go, because I did nothing in php or mysql sofar, but finaly I get it to work. I like it and think it is much more secure, because you need username and password to enter the mysql datas.