【发布时间】:2016-05-24 10:50:06
【问题描述】:
laravel 5 在 hostgator 专用服务器上 30 秒后给我“操作超时”。
但我将最大时间更改为 3600 秒,并且它在我的本地主机上正常工作
我的代码是
$total = '';
for ($i=0;$i<60;$i++){
$total .= $i;
sleep(1);
}
echo $total;
不,我使用专用服务器 所以我想我必须只添加我的代码
safe mode = off
memory_limit = 256M
max_execution_time = 3600
max_input_time = 60
post_max_size = 64M
upload_max_filesize = 64M
enable_dl = on
【问题讨论】:
-
对我来说运行没有问题,你可以在你的服务器上查看
max_execution_time。
标签: php laravel for-loop dedicated-server