header in php for more the one website
Posted on 2012-04-05
I have 2 websites, basically the same thing except the language is different. I know I could do this all on one domain, but I want to have an english and a french domain name for certain reasons, both with have the same code obviously. Im working roght now in the header which basically is the main navigation.
I was thinking of doing something like this - because I may want to add more domains later
$currentDomainName = $_SERVER['SERVER_NAME'];
$myDomains = array("domainEng.com", "domainFr.com");
Show navigation for domain
however the navigation could difer from site to site, I want to be able to chose the name of the links for each site.