Be sure to upload the flash game swf and highscores.php into the same directory on your server.
You can check whether your php script is working without having to play the flash movie. Type the URL of the php script into your browser and create the command variable in the URL, ie. www.yourdomain.com/highscores.php?command=init
Or take it a step further:
The second example should add a row to your database with player Nick and score 45.
I have spent a lot of time and energy was creating these scripts for my games and Flash Arcadia. If you do make use of the information in this tutorial kindly link to my site: http://www.flasharcadia.com. You can email me at email@example.com.
|» Level Intermediate|
Rating: 6 Votes: 22
|Nick is a Flash Developer for London based web design agency Edition Interactive. His main role is online games design and development for clients such as Channel Four Television.|
|Download the files used in this tutorial.|
|Download (94 kb)|
|More help? Search our boards for quick answers!|