php.ini配置文件中display_errors 选项目的很明显 ——是否将错误显示在屏幕上(包含在输出中),默认值是 Off。

应当在开发环境中设置为On,这样可以在开发时就发现错误,以便调试;应当在部署环境中设置为Off,这样在所有用户(和潜在攻击者)面前错误将被隐藏。

5 Comments

  1. One of the most impressive blogs Ive viewed. Thanks much for retaining the internet sophisticated for a change. You have got model, class, bravado. I am talking about it. Please keep it up because without the world-wide-web is definitely with a lack of intelligence.

  2. Noticed your web-site on del.icio.us today and really liked it.. i saved it and will be back to check it out some more later .. As a Noob, I am frequently seeking online for articles or blog posts that can help me. Thanks! My best regards, Danita.

  3. Thank you for this blog. Thats all I can say. You most definitely have made this blog into something thats eye opening and important. You clearly know so much about the subject, youve covered so many bases. Great stuff from this part of the internet. Again, thank you for this blog.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


*