通过while或者if函数设置的,对没达到要求的不断循环执行
比如
$i=1;
while($i<10000)
{
echo ”次数为“ . $i;
$i++;
}
那么我在打开php页面,在页面完成并跳出 结果之前关闭了浏览器,那么后台还会执行吗?
比如
$i=1;
while($i<10000)
{
echo ”次数为“ . $i;
$i++;
}
那么我在打开php页面,在页面完成并跳出 结果之前关闭了浏览器,那么后台还会执行吗?
1
shiny PRO 请查看相关函数: ignore_user_abort、fastcgi_finish_request
|
2
RobinFai Jan 22, 2014
修改输出为更新文件内容,然后你就知道了。
|
3
kran Jan 22, 2014
执行
|
4
a7898585 OP @RobinFai
<?php $i=1; while($i<999999) { $i++; if ($i=999998) { $file=fopen("word.txt","a"); } } ?> 为毛执行不下去。。。。 Fatal error: Maximum execution time of 30 seconds exceeded in /home2/a7898585/public_html/woaixiaofeifei.com/ceshi/1.php on line 8 |
8
picasso250 Jan 23, 2014
笑死了
|
9
RobinFai Mar 5, 2014
题主在卖萌
|