Download List

Projeto Descrição

libtld is a library used to extract the TLD from a URI and to check email validity. This allows you to extract the exact domain name, sub-domains, and all the TLD (top level, second level, third level, etc.). The problem with TLDs is that you cannot know where the domain starts. Some domains can use one top-level domain, others use two, etc. However, it may be useful to know where the domain is to have the exact list of sub-domains. For example, if you want to force www. at the start of the domain name if no other sub-domains are specified, then you need to know exactly how many TLD are defined in a URI. The libtld offers one main function: tld(), which gives you a way to extract the TLD from any URI. The result is the offset where the TLD starts. This gives you enough information to extract everything else you need. For emails, the library is capable of parsing a string that represents a list of email addresses to be verified. The verification includes a check of the domain name and its TLD.

System Requirements

System requirement is not defined
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.

2011-12-19 02:01
1.1.1

Esta versão adiciona muitos TLDs conforme definido pela lista de sufixos pública. Ele tem um novo teste para verificar dados contra a lista pública de sufixo. Os testes existentes foram atualizados para trabalhar com a nova biblioteca. Há uma nova categoria chamada Entrepreneurial (ou seja, nomes de domínio oficial usados para sub-domínios revenda; i.e. uk.com.)
Tags: Patch
This release adds many TLDs as defined by the Public Suffix List. It has a new test to check data against the Public Suffix List. The existing tests have been updated to work with the new library. There is a new category called Entrepreneurial (i.e. official domain names used to resale sub-domains; i.e. .uk.com.)

Project Resources