if (PHP_SAPI == 'cgi-fcgi') { echo $response; fastcgi_finish_request(); } elseif (PHP_SAPI == 'apache2handler') { header("Connection: close\r\n"); header('Content-Encoding: none\r\n'); echo $response; $size = ob_get_length(); header("Content-Length: " . $size . "\r\n"); // send info immediately and close connection ob_end_flush(); flush(); ob_flush(); }
标签:sapi,清空,ob,echo,Content,header,flush,close,php From: https://www.cnblogs.com/kite2356/p/16929577.html