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 the PHP website development, the error (Bugs) debugging and solves is the essential part, in the website debugging stage, the error message can give us the very big help, when the website on-line, we should also display the original error message
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;
Website-back-end error reporting mechanism [original] based on the needs of project development, summarizes common error reminders for website development, including the error prompt page and the bounce after the login page is returned, both of them
The package magickwandforphp-1.0.9-2.tar.gz I installed will be magicwand. so is added to php. in ini, an error is reported. this is apache's error_log {code ...} my php. ini is like this {code ...} environment indicates that my services are stored
PHP gives different error hints for different severity errors at run time.Development, in order to standardize the program, the error level to higher, notice level of the report, to help quickly locate errors and code specifications. In the product
* For now, avoid warnings of e_strict mode
* (This must is done before function definitions)
*/
if (defined (' e_strict ')) {
$old _error_reporting = error_reporting (0);
if ($old _error_reporting & e_strict) {
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
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
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.