Games are more fun when there is a leaderboard of high scores that the players have achieved. Even single-player games can communicate with a shared web-based leaderboard. This recipe creates the web Server-Side (PHP) scripts to set and get player scores from a SQL database. The recipe after this one then creates a Unity game Client that can communicate with this web leaderboard Server.
Setting up a leaderboard using PHP and a database
Getting ready
This recipe assumes that you either have your own web hosting, or are running a local web server. You could use the built-in PHP web Server, or a web Server such as Apache or Nginx. For the database, you could use a SQL database Server such as MySQL or MariaDB, however, we&apos...