this may seem so lame to some, but I have exausted my brain trying to figure
this out, and therefore throw myself at the group:
basic breakdown of problem
$CurrentSite = $_SERVER["HTTP_HOST"];
<?php echo $CurrentSite ;?>
I only want the 'domain.com' part to display.. even if the host is
www.domain.com or whatever.domain .com
I just want to display the domain.com, am I right in thinking that regular
expressions would be the solution?
any assistance would save my sanity.
Thanks
this out, and therefore throw myself at the group:
basic breakdown of problem
$CurrentSite = $_SERVER["HTTP_HOST"];
<?php echo $CurrentSite ;?>
I only want the 'domain.com' part to display.. even if the host is
www.domain.com or whatever.domain .com
I just want to display the domain.com, am I right in thinking that regular
expressions would be the solution?
any assistance would save my sanity.
Thanks
Comment