Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Free php WHOIS script (demo & download)

Status
Not open for further replies.
Joined
Sep 28, 2006
Posts
402
Reaction score
6
Free script with a Creative Commons License and requested linkback to dailydomain.co.uk

Ive been looking how to including a whois lookup for use users directly from on my sites. Couldnt find a script to do what I wanted, how I wanted so created my own. This was first created for the UK market, so included are options which allow access to whois2 (if you have access).

I have tried to write the script in such a way other nic servers can be added easily but already covers :-

co.uk org.uk me.uk com net org info biz

working but commented out are :-
at de cc it ws


The script should work as is from download. To use enter the domain in the format xxxxx.com and select none or xxxxx and select which hlq from the drop down box. This was made this way to allow simple scripting of whois lookup. If you change form from POST to GET (LINE10) you can automate looks from external sources.


If you require whois2 the following lines need to be edited.

LINE 57
Code:
$string = socket_whois('x.x.x.x',$nicsrv,$dom);   // update x.x.x.x with your host IP if your using whois2

LINES 102 - 104
Code:
array('co.uk','whois.nic.uk','43'),		// 43 standard, 1043 if your host IP has access to whois2
array('org.uk','whois.nic.uk','43'),		// 43 standard, 1043 if your host IP has access to whois2
array('me.uk','whois.nic.uk','43'),		// 43 standard, 1043 if your host IP has access to whois2



Demo
http://www.dailydomain.co.uk/project/whoisx/whoisx_v1_0.php

Download
http://www.dailydomain.co.uk/project/whoisx/whoisx_v1_0.zip


A big thanks go to Dale (aZooZA for inernic information) and Chris (aquanuke socket assistance)



Please add your comments
 
Last edited:
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom