如何强制PHP不显示错误?

时间:2014-02-07 09:53:11

标签: php security error-handling

我扫描了我的网站并获得了安全警告:

Plugin: "Web Application Information Disclosure"
Category: "CGI abuses"
Synopsis: The remote web application discloses path information.
Description: At least one web application hosted on the remote web server
discloses the physical path to its directories when a malformed
request is sent to it.

我的网站是在Wordpress中,如何强制它不显示PHP错误?

这有时显示:

Warning: mysql_connect(): User ubinaryc_host already has more than 'max_
user_connections' active connections in /home/ubinaryc/public_html/wp-in
cludes/wp-db.php on line 1143

0 个答案:

没有答案