We have a php script / class that needs a few updates. It is used for domain available and whois lookups.
You can find the script in the attached zip file
the script/class: [login to view URL]
some examples: [login to view URL]
documentation: [login to view URL]
Work to be done (see detailed info below)
---------------
- update the array with the tld info (array with only 5 tld's)
- update the function is_available()
- add function get_domainstatus()
- create page with form to test the functions in the class
- create a php page where we can do a domain availability check
## Deliverables
Detailed info about the Job
---------------------------
- update the array
now this is array(top level domain,whois_Server,not_found_string)
we want this to be array (tld|1|whoisserver|AvailableString|maxchars|dasserver|dasport|dascommand)
we only need the 5 tld's in the example below
This because some tld's like .be .eu .nl are using a special command/port for the domain available check with no limitations, the whois is limited to a certain # queries/day.
so we add the info for DAS (Domain Availibility Service)
tld - domain name extension
1-enable, 0-disable lookup for this domain name
whoisserver - whois server responsible for the particular tld
string - string returned by the server if the domain was not found
maxchars - maximum length for domain name for specified tld
dasserver - Domain availability service
dasport - port used by das server
dascommand - command for das server
example:
com|1|[login to view URL]|No match|63|[login to view URL]|43||
de|1|[login to view URL]|free|63|[login to view URL]|43||
be|1|[login to view URL]|FREE|63|[login to view URL]|4343|get 1.0|
eu|1|[login to view URL]|AVAILABLE|63|[login to view URL]|4343|get 1.0|
nl|1|[login to view URL]|free|63||[login to view URL]|43|is|
- update the function is_available()
update this function so it uses the dasserver, dasport and dascommand
more information about the DAS
.be [login to view URL] (same for .eu)
.nl [login to view URL]
- add function get_domainstatus()
returns the status of a domain (ex: clientTransferProhibited, in quarantine) see details das server for .be . eu and .nl
- create a simple page with a form to test the different functions in the class
- create a php page where we can do a domain availability check
we want a page with 1 form where a user can put a domain, select a tld or select all tld's the result shows the result for the 1 tld or all tld depending on what was selected.
We found an example on [login to view URL] which shows the result when all lookups are done
and [login to view URL] which uses ajax and show a status indicator
We like the last but the initial form must be like on the first so we can just select 1 tld.
Please indicate if you have ajax experience and can make it with the status indicator.
This class will be used on a linux server with Apache and PHP 5.2