Re: Another parse problem
| From: | Robert Cummings | Date: | Thu, 17 Jun 2010 01:42:05 +0000 |
| Subject: | Re: Another parse problem | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306216@lists.php.net to get a copy of this message | ||
Daniel P. Brown wrote:
On Wed, Jun 16, 2010 at 15:52, Robert Cummings <robert@interjinn.com> wrote:Hahah, I can't be right all the time :D I didn't mean to use TLD, I meant to use domain name, but not including sub-domained names :) I don't even know what that is rightly called to exclude sub-domains. Anyways, those, by virtue of your above description can have two or more parts and there's not a simple way to extract that part without also extracting the sub-domain portions. 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.Additionally, extracting top level domains is not so simple since it may have 2 or more parts.*Gasp!* The Great Cummings is.... incorrect./me faints.Actually, ccTLD's are just the very last group of letters. Forexample, .il, .uk, and .br. However, the ICANN, registrar policies, or sponsorship requirements for some of them require the use of an SLD as well. For example, .co.il, .org.uk, and .com.br, respectively. Some ccTLDs offer the SLD options, but don't require them. For example, you can register .co.in, .firm.in, .gen.in, or any other available SLD+ccTLD, or just the ccTLD .in itself.Still others have no such requirement or even official SLDendorsements, such as good ol' Canada (Land of Clan Cummings), Ireland, and here in the US.