位置:- 正文

php.ini中屏蔽所有错误的方法(php屏蔽ip)

编辑:rootadmin

推荐整理分享php.ini中屏蔽所有错误的方法(php屏蔽ip),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:php屏蔽ip,php禁用system用什么绕过,php屏蔽notice错误,php屏蔽错误代码,php屏蔽ip,php屏蔽警告,php屏蔽notice错误,php屏蔽警告,内容如对您有帮助,希望把文章链接给更多的朋友!

php.ini中屏蔽所有错误的方法(php屏蔽ip)

432

1、打开“php.ini”配置文件,在其中搜索“display_errors”项。

2、将“display_errors”项的值设置为“Off”即可关闭所有的PHP错误报告,进而屏蔽所有错误。

实例

;ThisdirectivecontrolswhetherornotandwherePHPwilloutputerrors,;noticesandwarningstoo.Erroroutputisveryusefulduringdevelopment,but;itcouldbeverydangerousinproductionenvironments.Dependingonthecode;whichistriggeringtheerror,sensitiveinformationcouldpotentiallyleak;outofyourapplicationsuchasdatabaseusernamesandpasswordsorworse.;Forproductionenvironments,werecommendloggingerrorsratherthan;sendingthemtoSTDOUT.;PossibleValues:;Off=Donotdisplayanyerrors;stderr=DisplayerrorstoSTDERR(affectsonlyCGI/CLIbinaries!);Onorstdout=DisplayerrorstoSTDOUT;DefaultValue:On;DevelopmentValue:On;ProductionValue:Off;http://php.net/display-errorsdisplay_errors=Off
本文链接地址:https://www.jiuchutong.com/zhishi/311716.html 转载请保留说明!
下一篇链接:https://www.jiuchutong.com/zhishi/311717.html
免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络