August 28th, 2012
tldextract.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:
$components = tldextract('http://www.bbc.co.uk/');
echo $components->tld; // Outputs "co.uk".
Introduction
Most people try […] Continue Reading…
20 Comments
| Projects, Web Development
| Permalink
Posted by Jānis Elsts
August 21st, 2012
Chances are, you’ve run into this WordPress error at one time or another:
That’s a pretty unhelpful error message, isn’t it? Not only does it tell you nothing about what the exact problem is or how it occurred, but it’s also sometimes just plain wrong. Pretty often, it has nothing […] Continue Reading…
2 Comments
| Blogging, WordPress Development
| Permalink
Posted by Jānis Elsts