【发布时间】:2015-02-21 01:25:48
【问题描述】:
我正在使用刷新防止超时。我尝试了其他方法,但负载均衡器设置对我来说是锁定的。
我的脚本完全处理大量记录。
if (mysqli_num_rows($stream) > 0) {
while($row = mysqli_fetch_assoc($stream)) {
//updating user's ticket information
$unique = $row[ticketid];
$result = $pk->updateticket($unique, $data);
//flushing to keep connection alive
flush();
ob_flush();
}
}
header('Location: tickets.php'); //the redirect isn't executed - page becomes blank. Records are processed though.
但是,我在处理后重定向用户。这个标题位置没有被执行,页面只是变成空白。
【问题讨论】: