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.