title: PHP code not linking properly missing code
body: <p>Here is what I have. I have an index php page sitting on my /root/ folder with the following code:</p>
  
  <pre><code>index.php
  
  require_once("access/$template/head.php");
  </code></pre>
  
  <p>My functions page has the following configuration for the $template code:</p>
  
  <p><code>funcs.php</code></p>
  
  <pre><code>function getTemplateFiles() { 
      $directory = "models/site-templates/"; 
      $languages = glob($directory . "*");  
      return $languages; 
  }
  </code></pre>
  
  <p>My head php page has the following code:</p>
  
  <p>head.php</p>
  
  <pre><code>&lt;link rel='stylesheet' href='$template/css/style.css'&gt;
  </code></pre>
  
  <p>My question is what code can I add to my index page that will communicate with my head page, a code before my $template that will include the file location of my php page.</p>
  
  <p>Example 1</p>
  
  <pre><code>$include_dir/$template/css/style.css'&gt;
  </code></pre>
  
  <p>My question being is how can I include the path of my index page so that my head page will read as html like so?</p>
  
  <p>default, does not work <code>$template/css/style.css</code></p>
  
  <p>need it like this only for the index page <code>access/$template/css/style.css</code></p>