title: Constants are not "populated" when including a PHP file from remote server
body: <p>I have the folowing issue: I got a PHP file (<code>standards.php</code>) with statements like these:</p>
  
  <pre><code>define('CONSTVAR', '/path/');
  </code></pre>
  
  <p>Now, I have another file called <code>untitled.php</code>, containing this:</p>
  
  <pre><code>include ('standards.php');
  echo CONSTVAR;
  </code></pre>
  
  <p>This will result in a page saying <code>/path/</code>, the value of the constant.</p>
  
  <p>It's good so far.</p>
  
  <p>But when I put the <code>standards.php</code> on another one of my websites and try to include it from there (using the <code>include('http://mysite.eu/core/standards.php');</code> command), it doesn't work. The constant remain empty, and I also get the following error</p>
  
  <blockquote>
    <p>Warning: main(http://mysite.eu/core/standards.php) [function.main]: failed to open stream: Permission denied in /home/www/this.nl/core/untitled.php on line 28</p>
    
    <p>Warning: main() [function.include]: Failed opening 'http://mysite.eu/core/standards.php' for inclusion (include_path='.:/usr/local/php4/lib/php') in /home/www/this.nl/core/untitled.php on line 28</p>
  </blockquote>
  
  <p><code>allow_url_include</code> is enabled and <code>allow_url_fopen</code> too. When I type the full URL of the <code>standards.php</code> into my browser, I get a page result, so it's not an issue of not having access rights, right?</p>
  
  <p>What could be the issue here? Why is the constant, which is supposed to be global, not "inherited" when including from a remote server?</p>