tldextract.php – Extract TLD, Domain And Subdomains From URLs
August 28th, 2012tldextract.php is a PHP library that accurately extracts the effective top-level domain name, registered domain and subdomains from a URL. For example, you can use it to get the domain name “google” from “http://www.google.com”, or the TLD “co.uk” from “http://www.bbc.co.uk/”. Example: Introduction Most people try to do this by splitting the domain name on ‘.’ […]
Continue Reading...