PHP Error Management
PHP includes a number of functions useful for managing errors, allowing you to more professionally run the site during its production (live) stage.
For security and aesthetic purposes, it’s generally unwise for a public user to see error messages. Frequently, error messages—particularly those dealing with the database—will reveal certain behind-the-scenes aspects of your Web application that are better not made visible. While you hope all of these will be worked out during the development stages, that’s rarely the case. Using the functions described here will allow you to better tailor PHP’s response to errors in a more appropriate and secure manner.
Error reporting
The error_reporting() function in PHP is used to establish ...
Get PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.