PHP 后台定时循环刷新某个页面
如果间隔时间过长的话 会出现apache自动停止的现象。出现的原因则是设置了
ThreadsPerChild 450
MaxConnectionsPerChild 3000
错误日志报错
[mpm_winnt:notice] [pid 126236:tid 316] AH00362: Child: Waiting 270 more
seconds for 3 worker threads to finish.
[mpm_winnt:notice] [pid 126236:tid 316] AH00362: Child: Waiting 240 more
seconds for 3 worker threads to finish.
.......
[pid 126236:tid 316] AH00363: Child: Terminating 2 threads that failed to
exit.
[pid 126236:tid 316] AH00364: Child: All worker threads have exited.
然后直接停止了进程 导致循环结束
//此文件保存在为 sleep.php
//定义一个自动刷新的时间
$time = 500;//定义一个每次请求的最大运行时间
$time_limit = 200;ignore_user_abort(True);$rest_time=intval($_GET["time&