i am working on php-codeigniter i am using code for php script excution after connection close it working well in local server but not working in iis which is live server
this is my code
set_time_limit(0);
ob_end_clean();
ignore_user_abort(true);
header("Connection: close\r\n");
header("Content-Encoding: none\r\n");
ob_start();
echo date('Y-m-d H:i:s').PHP_EOL;
$size = ob_get_length();
header("Content-Length: $size",TRUE);
ob_end_flush();
ob_flush();
flush();
sleep(20);
file_put_contents('c:/tmp.txt', date('Y-m-d H:i:s'));
thanks regards srikanth bollineni