# How do you store values on an external server?

**URL:** <https://phaser.discourse.group/t/how-do-you-store-values-on-an-external-server/7036>\
**Category:** Phaser 3\
**Created:** [July 28, 2020, 3:18pm UTC](https://phaser.discourse.group/t/how-do-you-store-values-on-an-external-server/7036 "2020-07-28T15:18:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![espace](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/espace/32/1405_2.png) [@espace](https://phaser.discourse.group/u/espace)\
**Post date:** [July 28, 2020, 3:18pm UTC](https://phaser.discourse.group/t/how-do-you-store-values-on-an-external-server/7036/1 "2020-07-28T15:18:13Z")

</div>

hi,

I made a game and when the game is over, i would like to store the parameter (x and y positions) of this game to know if an another player could resolve this game.

How do you proceed to do that…?

i need to store the value on a server  
get theses values to others players…

Have you lin k about that ?

---

<div class="post-metadata">

**Author:** ![BlunT76](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/blunt76/32/1454_2.png) [@BlunT76](https://phaser.discourse.group/u/BlunT76)\
**Post date:** [July 28, 2020, 7:13pm UTC](https://phaser.discourse.group/t/how-do-you-store-values-on-an-external-server/7036/2 "2020-07-28T19:13:58Z")

</div>

Hi,  
Perhaps this can help you  
[https://rexrainbow.github.io/phaser3-rex-notes/docs/site/firebase-leaderboard/](https://rexrainbow.github.io/phaser3-rex-notes/docs/site/firebase-leaderboard/)

---

<div class="post-metadata">

**Author:** ![espace](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/espace/32/1405_2.png) [@espace](https://phaser.discourse.group/u/espace)\
**Post date:** [July 29, 2020, 10:50am UTC](https://phaser.discourse.group/t/how-do-you-store-values-on-an-external-server/7036/3 "2020-07-29T10:50:45Z")

</div>

Hi tanks for the link but il it possible to store others values like x,y position?

---

<div class="post-metadata">

**Author:** ![BlunT76](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/blunt76/32/1454_2.png) [@BlunT76](https://phaser.discourse.group/u/BlunT76)\
**Post date:** [July 29, 2020, 1:32pm UTC](https://phaser.discourse.group/t/how-do-you-store-values-on-an-external-server/7036/4 "2020-07-29T13:32:26Z")

</div>

I never tried this plugin, but there is extraData for your purpose  
Post score

```javascript
leaderBoard.post(score)
// leaderBoard.post(score, extraData)
// leaderBoard.post(score, extraData, timestamp)
    .then(function(record) { })
    .catch(function(error) { })

```

- `score` : A number, scores will be sorted descend.
- `extraData` : Extra data in JSON format.

---

<div class="post-metadata">

**Author:** ![PBMCube](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/pbmcube/32/93_2.png) [@PBMCube](https://phaser.discourse.group/u/PBMCube)\
**Post date:** [August 3, 2020, 10:50pm UTC](https://phaser.discourse.group/t/how-do-you-store-values-on-an-external-server/7036/5 "2020-08-03T22:50:26Z")

</div>

Welcome to the realm of server-side IT.

There are several ways to do this:  
[AJAX from W3Schools.com](https://www.w3schools.com/js/js_ajax_intro.asp) OR  
[Application Markup Language](https://www.w3schools.com/appml/)

You’re at a point that you need to start learning server-side (i.e., “infrastructure” ) **middleware** … such as PHP, ASP, .NET, PYTHON, and (the list goes on) …

Unfortunately, all these technologies are migrating toward **Cloud Service, DevOps, and Server-less** environments. Yes, you still need to understand “middle-ware” to use any of them.

I would suggest [“where to start and how to begin”](https://www.w3schools.com/whatis/default.asp) with this chart … **BUT I’M ALWAYS DELETED FROM THIS FORUM FOR MY HELPFUL SUGGESTIONS.** I recommend a quick google search on “Headless HTML5 Game Design” or “Making RPG Browser Games Content-as-a-Service” .

---

<div class="post-metadata">

**Author:** ![rexrainbow](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/rexrainbow/32/51_2.png) [@rexrainbow](https://phaser.discourse.group/u/rexrainbow)\
**Post date:** [August 4, 2020, 9:28am UTC](https://phaser.discourse.group/t/how-do-you-store-values-on-an-external-server/7036/6 "2020-08-04T09:28:55Z")

</div>

I have another firebase plugins, [File](https://rexrainbow.github.io/phaser3-rex-notes/docs/site/firebase-files/), to save player’s private data.

---

<div class="post-metadata">

**Author:** ![rudyardcatling](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rudyardcatling](https://phaser.discourse.group/u/rudyardcatling)\
**Post date:** [August 4, 2020, 9:58am UTC](https://phaser.discourse.group/t/how-do-you-store-values-on-an-external-server/7036/7 "2020-08-04T09:58:06Z")

</div>

jquery-ajax / php might be your best bet there - get ready for some extra hours if that’s from scratch
