I wrote a web application and uploaded it to remote server. I used PHP5, MySQL and AngularJS.
differences from local and remote installation are:
----------------------------------------------
| | local host | remote host |
----------------------------------------------
| OS | Fedora 22 | Ubuntu 14.04.2 LTS |
----------------------------------------------
| PHP | 5.6.10 | 5.5.9 |
----------------------------------------------
| Apache | 2.4.12 | 2.4.7 |
----------------------------------------------
| MySQL | 5.6.25 | 5.5.43 |
----------------------------------------------
maybe my problem is connected to version differences or maybe not but in both cases I would like to understand what is causing this difference.
problem description: when requesting some resource which will return a json encoded list of objects (resulted from a query to MySQL server) from local server it will be parsed and will look like this
[{id : 1, name: "some name 1"}, {id: 2, "some name 2"}]
but when request is made to remote server, same data will be parsed as:
[{id : "1", name: "some name 1"}, {id: "2", "some name 2"}]
please note that numbers are interpreted as strings and in both cases Content-Type is equal to application/json.
if some other info is needed, I would be glad to provide it.