全球主机交流论坛

标题: PHP 显示错误消息如何关闭? [打印本页]

作者: kok    时间: 2010-4-7 20:42
标题: PHP 显示错误消息如何关闭?
LNMP 默认安装后 PHP.INI 设置默认是显示错误消息的...   求教...改那里? 谢谢
作者: cnx    时间: 2010-4-7 20:44
; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
;
; possible values for display_errors:
;
; Off          - Do not display any errors
; stderr       - Display errors to STDERR (affects only CGI/CLI binaries!)
; On or stdout - Display errors to STDOUT (default)
;
; To output errors to STDERR with CGI/CLI:
;display_errors = "stderr"
;
; Default
;
display_errors = Off
作者: cpuer    时间: 2010-4-7 20:55
标题: 回复 2# 的帖子
display_errors = Off  
作者: kok    时间: 2010-4-7 22:14
谢谢两位C大
作者: cnx    时间: 2010-4-8 10:31
原帖由 kok 于 2010-4-7 22:14 发表
谢谢两位C大


作者: huobazi    时间: 2010-4-8 10:36
这么说我是h字辈的了?
作者: ccy136    时间: 2010-4-8 10:52
记录下备用·
作者: wzwen    时间: 2010-4-8 10:54
干嘛要关掉?开着调试方便
作者: huobazi    时间: 2010-4-8 10:55
原帖由 wzwen 于 2010-4-8 10:54 发表
干嘛要关掉?开着调试方便

在生产环境调试啊?
作者: zyypp    时间: 2010-4-8 18:21
标题: 回复 6# 的帖子
...那我岂不知Z字辈的了 ~~~~(>_<)~~~~




欢迎光临 全球主机交流论坛 (https://loc.imgfree.eu.org/) Powered by Discuz! X3.4