睡眠函数无法在浏览器中加载 php 文件

问题描述 投票:0回答:0

我有这个 php 脚本:

<?php
set_time_limit(100); // set the maximum execution time to 60 seconds
while (1>0){
echo 'Script execution completed.';
sleep(10); }
?>

它在终端上完美执行,但甚至不加载 firefox 怎么办?

我已经将

php.ini
中的 max_execution_time 设置为 100,它没有帮助

php sleep
© www.soinside.com 2019 - 2024. All rights reserved.