O'Reilly logo

CouchDB and PHP Web Development Beginner's Guide by Tim Juravich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exception handling and resolving errors

If you were to try to go back to your signup form and save another document with the name John Doe, you would see a pretty unfriendly error page that looks something similar to the following screenshot:

Exception handling and resolving errors

If you are using a browser other than Chrome, you probably received a different message, but the result is still the same. Something bad happened that we didn't expect, and even worse, we aren't capturing these exceptions.

What happens when something goes wrong? How will we figure out what broke? The answer is: we look at the logs.

Deciphering error logs

When PHP and Apache are working together, they produce a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required