the include is definitely being included becauase the html it contains is included in the parent page
here's the relevant bit of the parent page - the first four lines of code that include the two files
<?php session_start();
require "gestion/inc_config.php";
$pageTitle = " - unplusbio.org";
require SITE_ROOT.SITE_FOLDER."inc_head.php" ; ?>
here's the relevant part of "inc_config.php" :
// basepath for site
define("SITE_ROOT", "http://www.unplusbio.org/");
define("SITE_FOLDER", "manger-bio/");
// basepath for dynamic images
define("BASEPATH_SI", "restauration-bio-images/");
define("BASEPATH_DI", "manger-bio-dyn/");
// global meta keywords
define("META_KEYWORDS", "bla bla bla");
and here's the "inc_head.php" file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo KEYWORD_UPPER.$pageTitle; ?></title>
<meta name="description" content="<?php echo META_DESCRIPTION; ?>">
<meta name="keywords" content="<?php echo META_KEYWORDS; ?>">
<link rel="stylesheet" href="<?php echo SITE_ROOT.SITE_FOLDER; ?>unplusbio.css" />
<script type="text/javascript" src="<?php echo SITE_ROOT.SITE_FOLDER; ?>unplusbio.js"></script>
</head>
so... the variable META_KEYWORDS is defined in inc_config.php and is therefore included in the index.php, no probs. but it doesn't then get transferred as a CONSTANT to the inc_head.php include
here's the source code that is returned by the server :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>KEYWORD_UPPER</title>
<meta name="description" content="META_DESCRIPTION">
<meta name="keywords" content="META_KEYWORDS">
<link rel="stylesheet" href="SITE_ROOTSITE_FOLDERunplusbio.css" />
<script type="text/javascript" src="SITE_ROOTSITE_FOLDERunplusbio.js"></script>
</head>
i think it's some kind of scope problem but i can't figure it out