我正在使用 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/