gpt4 book ai didi

php - 抑制消息 "Fatal error: Maximum execution time of 30..."

转载 作者:可可西里 更新时间:2023-11-01 12:49:19 26 4
gpt4 key购买 nike

我正在使用 register_shutdown() 在上传时间过长导致 PHP 超时时提供显示页面。我真的不需要向用户显示 fatal error ,如何隐藏该消息?

最佳答案

您可能想要设置 display_errors php.ini 中的指令在您的生产机器上关闭。或者,如果您的脚本没有超出超时问题的任何 fatal error ,您可以使用 ini_set在运行时关闭显示错误。

关于php - 抑制消息 "Fatal error: Maximum execution time of 30...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8547836/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com