当前位置: 首页 > 工具软件 > FastCGI > 使用案例 >

非fastcgi模式实现fastCGI模式的fastcgi_finish_request()

柳珂
2023-12-01

PHP using php_mod (standard Apache)

ob_start();
header("Connection: close\r\n"); 
header('Content-Encoding: none\r\n');

// your code here


$size = ob_get_length();
header("Content-Length: ". $size . "\r\n"); 
// send info immediately and close connection
ob_end_flush();
flush();

// run other process without the client attached. 


For PHP using fastCGI and PHP_FPM :

// your code here

fastcgi_finish_request();

// run other process without the client attached.
 类似资料: