Um.. you might have to read this two or fifteen times, to get what I mean - lol
I have 12 domains and I am trying to build them all using "one"
header and
footer template.
I simply have some code like this:
Code:
<? include("/home/site1/public_html/serverwide/header.php"); ?>
<? include("/home/site1/public_html/forums/index.html"); ?>
<? include("/home/site1/public_html/serverwide/footer.php"); ?>
However, in the header file, I have an [problematic] include for a tab menu. Of course, if I have 12 different domains - I'll need 12 different tab menu's!
My problem is that I can't set the include from the home directory, because I want eash site to use a specific template like this:
Code:
<?php include("/home/site1/public_html/serverwide/tabmenu.php"); ?>
However, because the above code is in the MAIN header template, which is being used for all of my domains {ie: there is only ONE maain header file) - I can't have the
/site1/ part in it. I need the template to use the tab menu from the site that it is being called from.
Can anyone show me how to do this?
This might look really dumb, (and I KNOW) it doesn't work - but I need to get the above code to work like this:
Code:
<?php include("public_html/serverwide/tabmenu.php"); ?>
..instead of this:
Code:
<?php include("/home/site1/public_html/serverwide/tabmenu.php"); ?>
MrLeN