只是想知道max_execution_time是如何工作的。文档这里指出,该选项设置:
允许运行脚本的最长时间(秒)。
这包括/需要如何工作?
示例:
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并继续运行,还是整个文件退出了?
发布于 2014-08-18 17:11:56
执行中断并抛出一个错误。
发布于 2014-08-27 07:12:30
最大执行时间是脚本可以执行的时间。不管你有多少个。因此,如果在任何时候脚本将耗尽时间,一切都将停止,您将收到
致命错误:超过XX秒的最大执行时间
https://stackoverflow.com/questions/25368303
复制相似问题