Handling and Avoiding Errors in PHP

Logging Your Own Error Messages In PHP

logging-error-messages-php When an error is raised, the PHP engine usually logs the error message somewhere. A user can control exactly where the error message is logged by using a few PHP configuration directives: display_errors: This controls the error messages are displayed in the browser. A user can Set to On to display errors, or Off …

Logging Your Own Error Messages In PHP Read More »

Using Exception Objects to Handle Errors In PHP

PHP gives an exceptions, which are used for triggering and handling error conditions. Rather than returning a single error value, the method or function can create a rich Exception object that includes detailed information about the problem and then throw the object up to the calling code to handle, or catch. Another nice feature of …

Using Exception Objects to Handle Errors In PHP Read More »

Scroll to Top