Conditional configuration: How to detect if I'm local or online?
<p>I want to provide different configurations for local and offline. At the moment, every time I upload my stuff to the web server, I must make sure that I don't mess up with the different config files. One for local development, and one for online.</p>

<p>I slightly remember a couple of years ago, a code snippet distinguished somehow automatically between online and local development.</p>

<p>Is there a safe way to detect that?</p>
