In our program development, we often encounter program running errors. PHP will give different prompts based on the program error level. For example, what warnings, errors, and other errors can be set. if there are only some small errors, we can
Give the new person a summary of the error handling of PHP.
PHP provides error handling and logging functionality. These functions allow you to define your own error-handling rules and how to modify the error record. In this way, you can change and
With logging, you can send information directly to other log servers, either to a designated email address (or via a mail gateway), or to an operating system log, so that you have the option to record and monitor the most important parts of your
Compiling the source package requires./configure then compile a. so fileOne less error packetInstall packageNormal displayThe LS directory has a./configure fileQuerying module LocationsEditing a configuration fileEditing a configuration fileIncrease
With logging, you can send information directly to other log servers, either to a designated email address (or via a mail gateway), to an operating system log, and so on, so you can selectively record and monitor the most important parts of your
The php provides the ability to handle error handling and logging. These functions allow you to define your own error-handling rules, as well as how to modify the error record. This way, you can change and enhance the error output to meet your
System logs are not reported: {code ...} at the same time, the nginx Log also reports an error: {code ...} nginx configuration: {code ...} system Environment: nginx: 0.8.54PHP: 5.2.17 system logs are not reported:
Dec 21 18:54:09 CentOS5 kernel:
1. PHP Error Default processing method
In PHP, the default error handling is simple. A message is sent to the browser with a file name, line number, and a message that describes the error. Error handling is an important part of creating scripts and
Ensure the security of your PHP application and ensure that your PHP application
Before you beginIn this tutorial, you will learn how to add security to your own PHP Web application. This tutorial assumes that you have at least one year of
In many cases, php files may encounter some very difficult-to-troubleshoot errors, such as output of large white pages. It is possible that the PHP error level shields some non-fatal errors, resulting in no error prompt. Therefore, understanding and
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.