Recommend this page to a friend! |
Download .zip |
Info | View files (6) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2013-04-25 (3 years ago) | Not yet rated by the users | Total: 321 | All time: 6,837 This week: 958 |
Version | Licenses | PHP version | Categories | |||
tld 0.1 | GNU General Publi... | 5.3 | Networking, PHP 5 |
Description | Author | ||||||||||||||
This class can determine the Top Level Domain from a given URL. Innovation Award |
|
AUTHOR Artur Barseghyan (artur.barseghyan@gmail.com) LICENSE MPL 1.1/GPL 2.0/LGPL 2.1 DESCRIPTION Extracts the top level domain (TLD) from a URL given. List of TLD names is taken from http://mxr.mozilla.org/mozilla/source/netwerk/dns/src/effective_tld_names.dat?raw=1 USAGE EXAMPLE To get the top level domain name from the URL given: require 'tld/utils.php'; echo Tld::getTld("http://www.google.co.uk") To update/sync the tld names with the most recent version run the following from your terminal: php -f tld/update.php To run tests: php -f tld/tests.php |
Files |
File | Role | Description | ||
---|---|---|---|---|
res (1 file) | ||||
exceptions.php | Class | Exceptions | ||
readme.txt | Doc. | Readme | ||
tests.php | Example | Test/example | ||
update.php | Appl. | Update script to be used from command line | ||
utils.php | Class | Main file |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.