How do i implement this scenario using PHP?

前端 未结 2 1091
春和景丽
春和景丽 2020-12-10 08:39

I am writing an android application which uses C2DM. When a user sends some message to the server, the server replies back to the sender and forwards that message to a set o

相关标签:
2条回答
  • 2020-12-10 09:11

    I don't know if this will work but you could try adding Content-Length: and Connection: close headers, and of course the explicitly flushing output.

    EDIT: try this

    ob_start();
    //output
    header("Content-Length: ".ob_get_length());
    header("Connection: close");
    ob_end_flush();
    //do other stuff
    
    0 讨论(0)
  • 2020-12-10 09:21

    Ob-Implicit-Flush should do the trick. :)

    0 讨论(0)
提交回复
热议问题