Im struggling with the basics here and any help is appreciated.
I have an index.php in the main website folder:
www.site.com/index.php
I have a sub folder here with a file I want to include:
www.site.com/book/application/language/english/translations_lang.php
When trying to include the file in my index.php the website fails to load
I have tried this:
<? php include '/book/application/language/english/translations_lang.php'; ?>
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.
The translations file has the following:
<?php defined('BASEPATH') OR exit('No direct script access allowed');
// English
$lang['company_name'] = 'Big Company';
I think i get an idea that its the BASEPATH thats stopping this from being read and causing the failure of the site.
Help