这篇文章主要介绍了PHP中捕获超时事件的方法实例,本文直接给出示例代码,需要的朋友可以参考下
set_error_handler()不能捕获致命错误(具体错误类型见手册)。
所以需要如下方法:
注意:sleep()停顿时间不算在max_execution_time中。
,
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn