【问题标题】:How to turn off PHP + MySQL error formatting如何关闭 PHP + MySQL 错误格式化
【发布时间】:2012-05-29 04:52:20
【问题描述】:

如何关闭 PHP 错误格式以仅获取纯文本?这也应该会影响 MySQL 相关的功能。

我想获取纯文本,而不是结构化的 HTML 错误消息。

更新

AS Artefact2提示我需要修改php.ini文件,所以

ini_set('html_errors', false);

如果我实时需要它就可以解决问题。

【问题讨论】:

  • @NAVEED,您应该知道问题和接受之间存在延迟。我还要再等 7 分钟
  • 我知道,但我想确认你也知道 :) 没关系。

标签: error-reporting php


【解决方案1】:

http://www.php.net/manual/en/errorfunc.configuration.php#ini.html-errors

只需在 php.ini 中将 html_errors 设置为“关闭”即可。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-15
    • 1970-01-01
    • 1970-01-01
    • 2021-08-23
    • 2013-04-21
    相关资源
    最近更新 更多