Hi jad, your suggestion works. However theres still a problem. I applied the same concept to files in another directory, but it doesn't work...
config.php
// Define the location of third level files
$admin_files = '/var/www/httpdocs/forums/core/admin';
$include_files = '/var/www/httpdocs/forums/core/includes';
$core_files = '/var/www/httpdocs/forums/core';
$en_language_files = '/var/www/httpdocs/forums/core/language/lang_english';
I'd like:
/var/www/httpdocs/forums/yetanothertest/admin/index.php
to display:
/var/www/httpdocs/forums/core/admin/index.php
The core admin index includes another file:
/var/www/httpdocs/forums/yetanothertest/language/lang_english/lang_main.php
Which includes the relevant file in the core directory.
However, this is the error I get when going to the admin index.php in the yetanothertest/admin folder's:
Warning: main(/lang_main.php): failed to open stream: No such file or directory in /var/www/httpdocs/forums/yetanothertest/language/lang_english/lang_main.php on line 4
This is the content of lang main in yetanothertest:
<?PHP
require_once "../config.php";
require_once "$en_language_files/lang_main.php";
?>
I confused myself trying to exlain that. Basicly, what I'm trying to do is have the files in yetanothertest display the file in the core directory.