title: File exists but will not include with variable as path, not permission issue
body: <p>I have a template that I am working on that generates dynamic content pulled in by dynamic includes. The problem is that although these include files exist (yes I check), they won't include or require and throw no errors even with error reporting. Here's the relevant code - notice that I am including other files in the same base directory with no issues i.e. nav.php.</p>
  
  <p></p>
  
  <pre><code>        &lt;div id="main-wrap"&gt;
              &lt;div id="main" role="main"&gt;
                  &lt;section id="header-img"&gt;
                       &lt;div id="rotator"&gt;
                          &lt;div id="controls"&gt;
                              &lt;div id="rotator-next"&gt;&lt;/div&gt;
                              &lt;div id="rotator-prev"&gt;&lt;/div&gt;
                          &lt;/div&gt;
                          &lt;img src="&lt;?php echo $BD; ?&gt;img/index-header.jpg" width="3416" height="362" alt=""&gt;
                      &lt;/div&gt;
                      &lt;?php
                          if ($PAGE !== 'step2')
                          {
                              require_once 'inc/form-main.php';
                          }
                      ?&gt;
                  &lt;/section&gt;&lt;!-- /#header-img --&gt;
  
                  &lt;div class="clear"&gt;&lt;/div&gt;
  
                  &lt;div id="inner-page-content" class="wide locations"&gt;
                      &lt;div id="inner-page-inner"&gt;
                          &lt;?php
                              $path = "inc/pages/$service/$location.php";
  
                              echo $path . '&lt;br&gt;';
  
                              if (file_exists($path))
                              {
                                  require_once "inc/pages/$service/$location.php";
  
                                  echo '&lt;pre&gt;'; print_r(error_get_last()); echo '&lt;/pre&gt;';
                              }
                              else
                              {
                                  require_once 'inc/404w.php';
                              }
  </code></pre>
  
  <p>Notice that I have tried using a concatted string, and also tried passing a var to require $path. Neither work and no errors are being thrown even though error reporting on. When I echo $path out it shows the correct path. I've checked the perms on the associated files and even directories, and they are all set properly.</p>