hey,
this is driving me mad - as it should be so simple?!!
I have a page which has a header, menu etc....
at the top of the page, I include a "config.php" file which stores the path to the pages... eg:
$path = "http://www.blah.com/";
then in the main pages, I have other includes such as a menu.php... but I cannot access the $path variable in it.... here's an example of a page..
<?php include "config.php"; ?>
<HTML>
<BODY>
My page<BR><BR>
<?php include $path."menu.php"; ?>
</body>
</html>
so the above gets the menu file no problem, but inside t, I have links such as:
<a href="<?php echo $path; ?>about.php">About</a>
but I get a "notice: undefined variable, $path".....
how can I pass the variable to the page?!
thanks....