PHP exceptions, how to handle them
<p>I have a PHP script that will throw exceptions (e.g. cannot connect to server). In the development arena I would like as much information to be on the screen, but in production I do not want to give the game away. But I would like some code that works in both environments and also enables me to further develop the code.</p>

<p>Is there a prescribed technique to achieve this?</p>

<p><strong>EDIT</strong></p>

<p>Yes using apache with PHP</p>

<p>But how to distinguish between the production environment and the development environment without having to change the code base.</p>
