8. Error Handling and Debugging

In This Chapter

Error Types and Basic Debugging 242

Displaying PHP Errors 248

Adjusting Error Reporting in PHP 250

Creating Custom Error Handlers 253

PHP Debugging Techniques 258

SQL and MySQL Debugging Techniques 262

Review and Pursue 264

If you’re working through this book sequentially (which would be for the best), the next subject to learn is how to use PHP and MySQL together. However, that process will undoubtedly generate errors, errors that can be tricky to debug. So before moving on to new concepts, these next few pages address the bane of the programmer: errors. As you gain experience, you’ll make fewer errors and learn your own debugging methods, but there are plenty of tools and techniques the beginner ...

Get PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide, Fourth Edition 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.