PHP blocking methods for all kinds of exceptions and errors and alarms when fatal errors occur
In daily development, most people do this by turning on debug mode in the development environment and turning off debug mode in the product environment.
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;
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
PHP features: the command line mode starts with version 4.3.0. PHP provides a new type of cli sapi (Server Application Programming Interface, Server Application Programming Port) support, named CLI, command Line Interface, that is, Command Line
PHP Error mechanism knowledge Summary, PHP mechanism summary
PHP's error mechanism is also very complex, did a few years of PHP, also did not carefully summed up, now fill this lesson.
Special Note: The PHP version of the article uses 5.5.32
Error
Php's error mechanism is also very complex, did a few years of php, also did not carefully summed up, now fill this Lesson.Special Note: The PHP version of the article uses 5.5.32Error level for PHPFirst you need to know what PHP errors Are. Up to
PHP, a nested abbreviated name, is an abbreviation for the English Super Text preprocessing language (Php:hypertext preprocessor). PHP is an HTML embedded language, PHP and Microsoft's ASP quite a bit similar, is a server-side implementation of
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
After installing the sublime Text3 under the Mac, some plugins have been installed, including PHP code sniffer, which is referred to as phpcs. Used to prompt for PHP syntax errors. After installation, cannot display, I according to the official
"Record error (production environment)"Ini:① turn on/off error log functionLog_errors = On② Setting the maximum number of bytes for log_errors1024Other:
Options
Describe
Log_errors
Sets whether to log error
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.