使用.htaccess可以在某种程度上更改PHP的错误显示的设置,实际上,相当于更改PHP.ini的参数,很是方便。 将以下相应代码放到对应目录中的.htaccess文件,即可实现相应功能。 关闭错误显示: php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off php_valu......