Home > Backend Development > PHP Tutorial > thinkphp-PHP报notice错误后浏览器不显示了

thinkphp-PHP报notice错误后浏览器不显示了

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-02 11:33:28
Original
1189 people have browsed it

thinkphpphp

如题,我的脚本运行时报了这样的错误:Notice: Use of undefined constant ROOT - assumed '__ROOT__' in(这是我用软件模拟浏览器post数据之后返回的数据)。但是如果是用浏览器访问的话不会返回任何数据。但是我只要在输出之前加error_reporting(0)或者给常量加上双引号浏览器就可以正常输出了。我用的是xampp套件。我猜应该是apache的问题。但是百度和google都找到原因。我用的thinkphp3.1.请问有人知道吗?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template