When you run a PHP script, the PHP parser will do its best to report the problems it encounters. The handling behavior of error Reporting in PHP is determined by the configuration instructions in PHP configuration file php.ini. In addition, there
In many cases, our PHP files will appear some very difficult to troubleshoot the error, such as the output of Great white page, tuning the wrong. It is possible that PHP's error level masks some non-fatal errors, causing no error prompts. So
Recently, the younger brother in the process of writing PHP found PHP hint PHP notice: ...... The words, although this is only PHP hint content, and no big impact, but for security and aesthetic considerations, the younger brother still want to
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
This article describes various ways to debug your PHP application, including opening error reports in Apache and PHP, and finding the source of more difficult bugs by placing a strategic print statement in a simple PHP script. It also introduces the
disabling error Reportingerror_reporting (0);#orini_set("Display_errors", "Off");Turn On Error ReportingIni_set ("Display_errors", "on");#or error_reporting (e_all);When using PHP to do web site development, in order to prevent users from seeing
This article describes various ways to debug your PHP application, including opening error reports in Apache and PHP, and finding the source of more difficult bugs by placing a strategic print statement in a simple PHP script. It also introduces the
PHP's error mechanism is also very complex, did a few years of PHP, also did not carefully summed up, now to fill in this lesson.
Special Note: The PHP version of the article uses 5.5.32
Error level of PHP
First you need to know what bugs are in
This article describes various ways to debug a PHP application, including opening error reports in Apache and PHP, and finding the source of more difficult bugs by placing a strategic print statement in a simple PHP script. It also introduces the
If you're a veteran of PHP, you know what happens when a php script goes wrong. The PHP parser then gives the error message on the screen, such as Fatal error:call to undefined function in line 19--so the program terminates here. This information
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.