SERVER_ADDR undefined index
<p>I am getting an undefined index on my config page and it reads:</p>

<blockquote>
  <p><b>Notice</b>:  Undefined index:  SERVER_ADDR in <b>inc/config
  .inc.php</b> on line <b>3</b><br /></p>
</blockquote>

<p>Any idea on how I can fix that? I know its warning, but would still like to get at it. I am using it to check for the address whether to use my local or remote config settings.</p>

<p>I am using it in this context:</p>

<pre><code>if ($_SERVER['SERVER_ADDR'] == '127.0.0.1' || $_SERVER['SERVER_NAME'] == 'localhost') {        

}
</code></pre>
