PHP define is not registering constants
<p>I'm in the prcoess of setting up my (Wordpress) solution on a new production server. I now discovere that the PHP function <a href="http://php.net/manual/en/function.define.php" rel="nofollow"><code>define</code></a> is not working.</p>

<p>I have this line of code in my <code>functions.php</code>:</p>

<pre><code>define('INCLUDE_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content/themes/storelocator/include/');
</code></pre>

<p>Testing the following code:</p>

<pre><code>if (!defined('INCLUDE_DIR'))
  echo ' NOT SET! ';
</code></pre>

<p>outputs <code>NOT SET</code>.</p>

<p>According to <a href="http://www.desilva.biz/php/constants.html" rel="nofollow">this page</a>, I'm using constant correct in the <code>include</code> statement.
The rest of the code in <code>functions.php</code> is running fine. I've checked.</p>

<p>Is this due to some PHP configuration? I'm using PHP v5.3.8</p>

<p>UPDATE:</p>

<p><code>define()</code> is at the very top of <code>functions.php</code> file.<br>
The <code>if</code> statement is at the very top of <code>some-file.php</code>.</p>

<p>I'm pretty sure <code>functions.php</code> is run before <code>some-file.php</code>.</p>

<p><strong>UPDATE</strong><br>
It seems that I got this error because I had empty lines at the bottom of my PHP files. I removed the empty lines and now it seems to work :-/</p>
