Thinkphp-php Report notice error after the browser does not display

Source: Internet
Author: User
Keywords thinkphp PHP
thinkphpphp

Title, my script ran the Times with this error: Notice:use of undefined constant ROOT -assumed ' __root__ ' in (this is the data I returned after I used the software to simulate the browser post data). However, if it is accessed by a browser, no data will be returned. But I just need to add error_reporting (0) before the output or double quotes to the constant and the browser will be able to output normally. I'm using the XAMPP kit. I guess it's Apache's problem. But both Baidu and Google have found a reason. I use the thinkphp3.1. Does anyone know?

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.