Configure PHP Web page to display various syntax errors _php tutorial

Source: Internet
Author: User
Finding the problem is more important than solving the problem, using the PHP integrated Development Environment Appserv Web page will prompt various grammatical errors, but your own configuration development environment can not prompt the error, especially if it is not a syntax error, such as the call of COM components, when do not know where the problem appears, it is intolerable, then need to be configured separately

The directory file that you configured at this time
Pic
Configure Apache for this file D:\AppServ\apache\conf\httpd.conf

Will
Copy CodeThe code is as follows:
Php_flag display_errors on
Php_value error_reporting 2039

Put it on the last two lines.

Configure D:\AppServ\php\php.ini

Will
Copy CodeThe code is as follows:
Display_errors = On
error_reporting = E_all | E_strict

In the PHP configuration file, restart Apache

Ok!

http://www.bkjia.com/PHPjc/313593.html www.bkjia.com true http://www.bkjia.com/PHPjc/313593.html techarticle finding the problem is more important than solving the problem, using the PHP integrated Development Environment Appserv Web page will prompt various grammatical errors, but your own configuration development environment can not prompt the error, especially when not syntax error, ...

  • 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.