Re: Another parse problem
| From: | Robert Cummings | Date: | Wed, 16 Jun 2010 19:52:05 +0000 |
| Subject: | Re: Another parse problem | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306212@lists.php.net to get a copy of this message | ||
Daniel P. Brown wrote:
On Wed, Jun 16, 2010 at 13:22, tedd <tedd.sperling@gmail.com> wrote:Additionally, extracting top level domains is not so simple since it may have 2 or more parts. Cheers, Rob. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized.The given was to parse domain-names, but both routines pulled out sub-domains as well. Perhaps I am wrong in my understanding of what a domain name is, but I would normally look at sub domains as not part of the "domain name". Sub domains are simply extensions of the domain name, am I right or wrong?Technically, a domain name is anything from the TLD and SLD levelsand below. An FQDN (commonly called a "hostname") is in the format cname.sld.tld.