Re: Another parse problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux