OK, well i've found that I can get it too work but i need to tell you the whole story as the code I submitted earlier was a simplified version and it is in this that the problem lays....I was actually defining the location of the second include file in the config file (see below) but i still don't see why this doesn't work, as it DOES work if I type the full source location...It is worth noting though that when using the constant to find header.php, it did still 'include' it with no errors, just didn't pass on the constants!?!?
This wasn't working:
config.php has this code:
<?define('TITLE', 'MY DATABASE '); ?>
<?define('INCLUDE_FILE, 'includes/header.php '); ?>
default.php has the code:
<? INCLUDE "config.php"; ?>
<? INCLUDE INCLUDE_FILE; ?>
header.php has the code:
<? echo TITLE; ?>
This does work:
config.php has this code:
<?define('TITLE', 'MY DATABASE '); ?>
<?define('INCLUDE_FILE, 'header.php '); ?>
default.php has the code:
<? INCLUDE "config.php"; ?>
<? INCLUDE "header.php"; ?>
header.php has the code:
<? echo TITLE; ?>