Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

[PHP3] passing scores from a flash game From: Adam Powell (adam <email protected>)
Date: 05/05/00

Hi there, we want to add some flash games to our web site (which is
primarily PHP run), and have a kind of hi-score table. So somehow we want
the flash game to store a value in our mySQL database (username, score,
time), and then we want to print out the top scores in a table on the web
site.

It sounds easy, but the only ways (as far as I know) that flash has of
communicating with the DB is either by opening up a new window (ie
http://www.oursite.com/addpoints.phtml?user=X&points=1393), or by talking to
Javascript lurking on the page, and getting that to open up a new window, or
submit a form.

Now this is fine, but how do we stop cheaters? How can we stop people from
a) typing in the URL directly to gain points b) using a program to edit
hidden variables on the page c) submitting forms from their own hard drives
to score points. Is there any sort of encryption that anybody could
suggest? We were thinking of using HTTP_REFERER to make sure the values
came from the correct page, but our site is beset with the biggest cheating
community this side of Diablo... they will use any methods at their dispoal
to try and score points! They use a client that edits the web page as it is
loaded, thus bypassing the HTTP_REFERER check.

Any ideas would be welcomed!

Thanks,
Adam

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>