Saturday, May 11, 2013

[PHP]SEND JSON HEADER

use this method will be recived like a .json file:

header('Content-Type: application/json; charset=utf-8');

use this method will be recived like a .json file:

header("Content-type: text/xml; charset=utf-8")

No comments: