//设置mysql最大执行时长
ini_set('max_execution_time', '6000');
//无缓冲输出
header('X-Accel-Buffering: no');
foreach ($list as $K=>$v){
//处理数据....
echo '第'.$K."个:处理成功".$v['id']"<hr>";
ob_flush();
flush();
}
ob_end_flush();
08-02