Usage:
======
Include "whois_class.php" inside your page. Call the functions you need. Example.php provides complete examples.
Function Usage:
===============
- $domain->info() -> returns domain name whois information plain text
- $domain->html_info(OPTION) -> returns domain name whois information HTML text,
OPTION = 1 -> Encode emails using Captcha, 2 -> Do not encode emails
- $domain->is_available() -> Check if email is available
- $domain->is_valid() -> check if email is valid
- domain->get_whois_server() -> name of whois server used
- $domain->get_domain() -> just echoes back the domain name (without
http://www.)
- $domain->get_tld() -> returns the TLD of the domain name
- $domain->get_tlds() -> returns all tlds in the system we can check, tlds can be easily modified, added or removed.
Ajax Usage:
===========
- Check example_ajax.php for using info.
- You use the URL: ajax_callback.php?d=DOMAINNAME to return value:
-> 0 - Invalid domain
-> 1 - Domain is free
-> 2 - Domain is taken