【发布时间】:2014-10-11 15:52:33
【问题描述】:
只是想知道max_execution_time 的工作原理。
文档here 声明该选项集:
脚本允许运行的最长时间(以秒为单位)
这对包含/要求有什么作用?
例子:
file1.php
<?php
include("file2.php");
include("file3.php");
?>
file2.php
<?php
//some script that takes 6 minutes
?>
file3.php
<?php
echo "hello"
?>
如果 file2.php 需要 6 分钟(并且 max_execution_time 设置为 5 分钟),控制权会返回给 file1.php 并继续运行,还是整个文件退出?
【问题讨论】:
标签: php