1. *Error classification in php:
1. Syntax error:
2. Runtime error:
3. Logic error:
2. *In the php.ini configuration file, commonly used error and log configurations.
error_reporting: error level
display_errors: Whether to display error messages in the browser
log_errors=On; Whether to start logging
//Use function to temporarily set error information
ini_set() //php.ini configuration information temporary setting function
ini_set("display_errors","On"); //Through function setting, the current script can temporarily turn off error output.
error_reporting(E_ALL & ~E_NOTICE); //Temporarily set the error output level.
Statement:
All resources on this website are contributed and published by netizens, or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this website are for learning and reference only. Please do not use them for commercial purposes, otherwise you will be responsible for all consequences incurred! If there is any infringement, please contact us to delete and remove it. Contact information: admin@php.cn