The PHP file syntax is not displayed on the webpage.

Source: Internet
Author: User
The page does not prompt php file syntax errors. I set display_errors = On & nbsp; and error_reportingE_ALL & nbsp; & amp; & nbsp; ~ in php. ini ;~ E_NOTICE, and set php_flag & nbsp; display_errors & nb in httpd. conf. the php file syntax error is not prompted on the webpage.
In php. ini, I set display_errors = On and error_reportingE_ALL &~ E_NOTICE, and set php_flag display_errors on in httpd. conf.
Php_value error_reporting 2039
Run phpinfo. php to display these parameters normally, but the syntax error cannot be displayed on the webpage... I keep thinking that the reason may be that the php. ini file is not executed at all, so I wrote another file like this:
Ini_set ("display_errors", "On ");
Error_reporting (E_ALL );
Include ("test. php ");
?>
Here, test. php is the file with a syntax error. in this case, it will certainly work, and the result will not work yet...
Can someone help me... Php. ini error_reporting display_errors:
------ Solution --------------------
Check whether php. ini is the one you modified in the results of phpinfo ();

Since it is test. php, paste it out.
------ Solution --------------------
Display_startup_errors
------ Solution --------------------
In httpd. conf
Php_flag display_errors on
Php_value error_reporting 2039

Delete them!
------ Solution --------------------
We recommend that you reinstall it and try again.

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.