Possible Duplicate:
how to get domain name from URL
PHP Getting Domain Name From Subdomain
As i figured out a lot from the examples from the google there are not so universal for getting the domain name from url because of:
- www
- subdomains
- second-level domain (co.uk)
Is there any solution, that can get universally domain.