本文介绍了隐藏PHP/MySQL错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个基于 X-Cart 的网站.一切正常.但是,当我访问该地址(手动访问链接)www.mysite.com/"Xx<XaXaXXaXaX>xX
时,出现以下错误消息:
I have a website based on X-Cart. It’s working fine. However, when I go to the address (manually accessing the link) www.mysite.com/"Xx<XaXaXXaXaX>xX
I get this error message:
我发现这是我系统上的漏洞,因为它显示了表名和其他详细信息.
I find this to be a vulnerability on my system because it reveals the table name and other details.
我想防止PHP/MYSQL在屏幕上显示此消息.如何禁用它?
I would like to keep PHP/MYSQL from showing this message on the screen. How can I disable it?
推荐答案
在config.php中将$debug_mode
设置为2
Set $debug_mode
in config.php to 2
http://help.x- cart.com/index.php?title=X-Cart:Config.php#Correcting_debug_mode
这篇关于隐藏PHP/MySQL错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!