How do I close a connection early?

前端 未结 19 1395
情书的邮戳
情书的邮戳 2020-11-22 04:24

I\'m attempting to do an AJAX call (via JQuery) that will initiate a fairly long process. I\'d like the script to simply send a response indicating that the process has star

19条回答
  •  粉色の甜心
    2020-11-22 04:58

    If flush() function does not work. You must set next options in php.ini like:

    output_buffering = Off  
    zlib.output_compression = Off  
    

提交回复
热议问题