title: Including a variable file on PHP
body: <p>Im struggling with the basics here and any help is appreciated.</p>
  
  <p>I have an index.php in the main website folder:</p>
  
  <blockquote>
    <p>www.site.com/index.php</p>
  </blockquote>
  
  <p>I have a sub folder here with a file I want to include:</p>
  
  <blockquote>
    <p>www.site.com/book/application/language/english/translations_lang.php</p>
  </blockquote>
  
  <p>When trying to include the file in my index.php the website fails to load</p>
  
  <p>I have tried this:</p>
  
  <pre><code>&lt;? php include '/book/application/language/english/translations_lang.php'; ?&gt;
  </code></pre>
  
  <p>When the above failed I also removed the slash at the start, I also tried moving the translations file to the same sirectory as the index file but the site fails to load every time.</p>
  
  <p>The translations file has the following:</p>
  
  <pre><code>&lt;?php defined('BASEPATH') OR exit('No direct script access allowed');
  // English
  $lang['company_name'] = 'Big Company';
  </code></pre>
  
  <p>I think i get an idea that its the BASEPATH thats stopping this from being read and causing the failure of the site.</p>
  
  <p>Help</p>