Forum Moderators: coopster
I have found a couple of functions at php.net which will parse URL data into parts, but how do I get the URL (or path, but URL would be more useful in my case since multiple domains are used) into the function at run time?
I will take that information and then use it to query MySQL or an array to echo data into the title tags of my pages....
Any ideas?
Thanks!
Erik
if ($_SERVER['HTTP_HOST'] == "www.domain-b.com" OR $_SERVER['HTTP_HOST'] == "domain-b.com") {
$site_mirror = "mmi";
} else {
$site_mirror = "mms";
}<? if ($site_mirror == "mmi") { echo "mmi/logommi.gif"; } else { echo "logo.gif"; }?>
Any idea why this may be happening? I am usting ServerAlias in httpd.conf to make both domains point to the same content...