# Array from php server

**URL:** <https://forum.ionicframework.com/t/array-from-php-server/50869>\
**Category:** ionic-v3\
**Created:** [May 1, 2016, 10:00am UTC](https://forum.ionicframework.com/t/array-from-php-server/50869 "2016-05-01T10:00:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![iignatov](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/iignatov/32/100112_2.png) [@iignatov](https://forum.ionicframework.com/u/iignatov)\
**Post date:** [May 1, 2016, 2:13pm UTC](https://forum.ionicframework.com/t/array-from-php-server/50869/8 "2016-05-01T14:13:52Z")

</div>

@arctushar You haven’t [set the response headers properly](http://stackoverflow.com/questions/4064444/returning-json-from-a-php-script):

- [randomuser.me](https://randomuser.me/api/?results=2): `Content-Type:application/json; charset=utf-8`
- [need4engineer.com](http://need4engineer.com/api.php): `Content-Type:text/javascript`

I would recommend you to:

- [Learn more about Chrome Dev Tools](https://developer.chrome.com/devtools) _(see [inspecting HTTP headers](https://developer.chrome.com/devtools/docs/network#http-headers))_
- [Join a forum focused on PHP development](https://www.sitepoint.com/community/c/php)

Since the problem is not Ionic-related and the discussion is going off-topic I’m closing the topic.

---

_[View the full topic](https://forum.ionicframework.com/t/array-from-php-server/50869)._
