Why is specifying a defined constant inside a class constant throwing an error?
<p>Here is part of my code   </p>

<pre><code>define('DIR_APP', 'app/');

 class Questions
    {


        const QUESTIONS_FILE = DIR_APP . 'questions.xml';
    }
</code></pre>

<p>Seems when I take the <code>define()</code>'d constant out of my class constant declaration, it works fine. But when I add it it throws this error:</p>

<pre><code>Parse error: syntax error, unexpected '.', expecting ',' or ';' in /home/public_html/app/classes/Questions.class.php on line 7
</code></pre>

<p>So how can I get my <code>define()</code>'d constant in there? I assume it is not correctly looking up the <code>DIR_APP</code> thinking it might of been defined within the class. How do I get it to resolve it globally?</p>

<p>Thank you</p>
