php捕获最大执行时间错误 [英] Php trapping maximum execution time error
本文介绍了php捕获最大执行时间错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在达到最大执行时间时,PHP中是否有办法捕获致命错误并为用户提供更好的消息?
Is there a way in PHP to trap the fatal error when the max execution time is reached and give the user a better message?
推荐答案
尝试在文件执行后设置完成"标志,并注册一个关闭功能,以检查该标志是否已定义
Try setting a "Done" flag after the execution of a file and registering a shutdown function that will check if that flag is defined
这篇关于php捕获最大执行时间错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文