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);
精彩评论