How to make PHP errors in text instead of HTML [duplicate]

廉价感情. 提交于 2019-11-30 17:09:13

Whether PHP displays plain text or html errors depends on your php.ini configuration:

html_errors boolean

Turn off HTML tags in error messages. The new format for HTML errors produces clickable messages that direct the user to a page describing the error or function in causing the error. These references are affected by docref_root and docref_ext.

The setting is settable as PHP_INI_ALL, which means anywhere, including your script. So to disable html errors do

ini_set('html_errors', false);

at the beginning of your script.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!