I need to show gui text from mysql in a web player, any example or help ?

Thanks in advance for your time

http://www.unifycommunity.com/wiki/index.php?title=Server_Side_Highscores
and important for the webplayer, the crossdomain.xml:

HSController.js

private var secretKey=“mySecretKey”; // Edit this value and make sure it’s the same as the one stored on the server

what do i do with it ??
i really dont understand this at all, please try to explain me, where is it like stored in my server , my hosting ??

or is it like i have to keep it in a file like a txt file with some number in it ??

what exactly to do ??

I hope I have understood you correctly … you want to show a text from a mysql database in a web player, right? then read the tutorial 10 times … when you’re done: again;)
all you need is already there. you don´t have to save anything in a txt file, but you need a mysql database.
the webplayer connect to your php. the php connects with the database and returns you to the content. the example code is also found in the tutorial. change this code … customize the php and js code and to read the tutorial again:) do not forget to put the crossdomain.xml in your root folder. if this has still not helped, PM me

the strange thing is i cant pm you … funny, it shows an error
The following errors occurred with your submission

The following users were not found:
PressAnyKeyToPlay()

i understand every thing…thats simple except 1 thing

private var secretKey=“mySecretKey”; // Edit this value and make sure it’s the same as the one stored on the server

what is this secret key ?? its written “make sure it’s the same as the one stored on the server”…i dont know where is it stored

any suggestions plz

help plz

It’s a security net. The (PHP in this case) file holds a “secret key” value that your game sends to it. If the keys don’t match then the server doesn’t process the request. It’s a small countermeasure to stop people from doing the same request to your server from outside your game.

You make it whatever you want - something unique, but make sure it’s the same on the server and the client.

It gets hashed together with the password to make things more secure. If you just hashed the password (with md5 for instance) and then someone manages to break the md5 encryption, they have your password too. If you use what’s called a “salt” which is combined with your password before the md5 is applied, even if they break the encryption, they don’t know what your “salt” was so they can’t reconstruct the password. The “mySecretKey” is the salt in that example. Make it whatever you want - your dog’s name, some random word from the dictionary, whatever - just make it the same on the server and the client both so the server can de-crypt whatever you submit.

" just make it the same on the server and the client both so the server can de-crypt whatever you submit."

i dont understand the meaning of this line…

1 file is - HSController.js , lets say i keep “greatdog” as a secret key in there, in my unity file.

and addscore.php is another file where i will also add “greatdog” as a secret key and upload to server…now is there any other place where i have to add the secret key ?? and can i export as webplayer to test ??

I dunno. Try it and find out.