/*********************************************************
		This Free Script was downloaded at			
		Free-php-Scripts.net (HelpPHP.net)			
	This script is produced under the LGPL license		
		Which is included with your download.			
	Not like you are going to read it, but it mostly	
	States that you are free to do whatever you want	
			With this script!						
		NOTE: Linkback is not required, 
	but its more of a show of appreciation to us.					
*********************************************************/

Domain Whois

Features:
=========
* Get Whois of a domain
* Check if domain is available
* Check if domain format is correct
* Display Whois info Plain Text or HTML (clickable links+emails)
* Enable Captcha to protect emails (show emails as images)
* Easily add/edit/modify TLD server
* Over 270 servers already in the script
* Ajax CallBack File to enable Ajax domain check

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

Important Notes:
================

* To use Image Captcha to encode emails, insure that the system enables imagettftext(). Contact your hosting provider for info.

* Font size, types and background image can be edited in file sec_image.php. Please insure that the fonts you are using are copyrighted.


END FILE
==========
http://www.free-php-scripts.net

Partner Sites:
====================

Free File Upload: http://www.HotFile.us
Free Image Hosting: http://www.MyImage.us
Free Games (all type of games): http://www.FunTimes.us
Free Templates: http://www.allfreetemplates.us
PHP Skills and Tricks: http://www.phptricks.com

