Configure php web page to display various syntax errors

Source: Internet
Author: User
When using the php integrated development environment Appserv web page, you will be prompted for various syntax errors, but you cannot prompt errors when configuring your own development environment. how can this problem be solved? If you are interested, you can understand that the problem found in this article is more important than solving the problem. when you use the php integrated development environment Appserv webpage, you will be prompted for various syntax errors, but you cannot prompt errors when configuring your development environment, especially when it is not a syntax error, such as calling com components, it is intolerable to know where the problem occurs, and you need to configure it separately.

The directory file configured by yourself
Pic
Configure the apache file D: \ AppServ \ apache \ conf \ httpd. conf

Set

The code is as follows:


Php_flag display_errors on
Php_value error_reporting 2039


Put it in the last two rows

Configure D: \ AppServ \ php. ini

Set

The code is as follows:


Display_errors = On
Error_reporting = E_ALL | E_STRICT


Put it in the php configuration file and restart apache

OK!

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.