update : 2015.11.03
php.shukuma.com검색:
|
BasicsPHP reports errors in response to a number of internal error conditions. These may be used to signal a number of different conditions, and can be displayed and/or logged as required. Every error that PHP generates includes a type. A list of these types is available, along with a short description of their behaviour and how they can be caused. Handling errors with PHP
If no error handler is set, then PHP will handle any errors that occur
according to its configuration. Which errors are reported and which are
ignored is controlled by the
In a development environment, you should always set
What PHP does with these errors depends on two further php.ini directives.
In addition to displaying errors, PHP can log errors when the
User error handlersIf PHP's default error handling is inadequate, you can also handle many types of error with your own custom error handler by installing it with set_error_handler(). While some error types cannot be handled this way, those that can be handled can then be handled in the way that your script sees fit: for example, this can be used to show a custom error page to the user and then report more directly than via a log, such as by sending an e-mail. |