
header('Access-Control-Allow-Origin: *'); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept"); header('Access-Control-Allow-Methods: GET, POST, PUT,DELETE'); echo json_encode(array('status'=>1,'data'=>file_get_contents("php://input")));