Daniel P. Brown wrote:
On Wed, Jun 16, 2010 at 13:22, tedd <tedd.sperling@xxxxxxxxx> wrote:
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 levels
and below. An FQDN (commonly called a "hostname") is in the format
cname.sld.tld.
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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php