title: PHP include absolute path
body: <p>I have a variable on my site called $basePath which is set as:</p>
  
  <pre><code>$basePath = '/Systems/dgw/';
  </code></pre>
  
  <p>I am using it on all my css, js and images tags as so (shortened for better visibility):</p>
  
  <pre><code>&lt;link href="&lt;?php echo $basePath; ?&gt;include/assets/css/bootstrap.min.css"&gt;
  </code></pre>
  
  <p>I have no problem with those includes and they work fine in wherever file and in whatever folder I am.</p>
  
  <p>I have a certain included page which has the following line:</p>
  
  <pre><code>&lt;img src="&lt;?php echo $basePath; ?&gt;images/new_logo.png" alt="logo"/&gt;
  </code></pre>
  
  <p>And the image shows just fine. The line after it states:</p>
  
  <pre><code>&lt;?php include($basePath.'include/assets/common/topMessages.php');?&gt;
  </code></pre>
  
  <p>But the include doesn't happens. When I try it like this:</p>
  
  <pre><code>&lt;?php include('../../include/assets/common/topMessages.php');?&gt;
  </code></pre>
  
  <p>It works.</p>
  
  <p>Anybody has any idea what could be wrong?</p>