可能重复:
close a connection early
How to continue process after responding to ajax request in PHP?PHP下降HTTP连接
我需要在阿贾克斯行动,以点连接:
$response = getResponse($params);
echo $response; // don't make user to wait
flushAndDropConnection();
someLongActionsFor5Seconds();
我该怎么办呢?
可能重复[如何在PHP中响应ajax请求后继续进程?](http://stackoverflow.com/questions/1481247/how-to-continue-process-after-responding-to- ajax-request-in-php)或http://stackoverflow.com/questions/4806637/continue-processing-after-closing-connection或http://stackoverflow.com/questions/138374/close-a-connection-early或 – ManseUK 2012-07-30 13:52:44
您应该阅读PHP文档中关于'flush()'的讨论。这篇文章具体:http://www.php.net/manual/en/function.flush.php#91556 – Tchoupi 2012-07-30 13:54:24
重复的解决方案不起作用。 – DmitryR 2012-07-30 14:08:22