开发者

Error on running application on background

I have used the following code

ignore_user_abort(true);
set_time_limit(0);
$getdata=$this->input->post('textarea');
$arr = explode("\n",$getdata);
foreach ($arr as $a1){
    $count = $count+1;
    flush();
    ob_flush();
}

When I run above code in my local compute开发者_如何转开发r (WAMP Server 2.1 on windows Vista) it complete all task even I close browser. but when I upload to server it stop to work after processing 69 datas.


Use set_time_limit(0); to ignore execution time limitation.
Manual


do you mean?

echo count($arr); 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜