High Score submitting/retrieval by Eggbert

From Spheriki

Jump to: navigation, search

A Sphere script and a PHP script that allows you to send high scores and receive high scores from a web server.

Usage

First put hs.php (in the game folder) on your webserver, and modify the values to connect to a MySQL database. To send a high score to the server (once a connection has been made) you would do

 sendHighScore("Josh",20000);

To get a high score, you would do

 current_game="game";
 getHighScores();

Download In order to use this, you will need:

  • a web server
  • PHP
  • MySQL

To install these in windows, see the links below.

Windows
Debian
Fedora

Personal tools