【发布时间】:2012-12-16 01:33:10
【问题描述】:
所以我试过Show results while script is still executing
但由于某种原因它不起作用,所以这是我目前所拥有的:
ob_start();
include "../../common.php";
set_time_limit (0);
$start = (string) $_GET['start'];
$end = (string) $_GET['end'];
for($i = $start; strcmp($i, $end); $i = bcadd($i, 1)){
echo $i;
ob_flush();
}
ob_end_flush();
更新代码
*请注意,这段代码还不能工作!
set_time_limit(0);
$start = $_GET['start'];
$end = $_GET['end'];
for(;$start < $end;$start++){
$content = file_get_contents("[some internal page]");
echo $content;
usleep(10);
flush();
}
【问题讨论】:
标签: php