richcleverley
MIS
Hi,
Has anybody got an idea how to get the domain name from a url?
I know it's not something you usually need, but I have a page where a header is used on different domains and I need to know the domain the pages is on so a language change link can be used.
I tried $_SERVER['SERVER_NAME'] but that gives me the server subdomain that the domain is located in (this is a cpanel addon domain that resides in teh subdomain of my main one.)
Thanks,
Richard
Has anybody got an idea how to get the domain name from a url?
I know it's not something you usually need, but I have a page where a header is used on different domains and I need to know the domain the pages is on so a language change link can be used.
I tried $_SERVER['SERVER_NAME'] but that gives me the server subdomain that the domain is located in (this is a cpanel addon domain that resides in teh subdomain of my main one.)
Thanks,
Richard