AZForums: Create a Whois Search - AZForums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Create a Whois Search Really Simple

#1 User is offline   Oosband Icon

  • DnB Oos
  • PipPipPipPipPipPipPipPipPipPip
  • View blog
Group:
+ Legendary
Posts:
5,527
Joined:
30-August 05
Location:
UK

Posted 09 January 2006 - 08:05 AM

A Whois search is a search bar that you use for checking for info about domains, like if they are availible or if when they expire.

To add this to your site, it takes two very simple steps...

Step One:
Add this code to the very top of the page...make sure the web page is saved as .php
<? if($site != "") { exec("whois $site", $output, $error); while (list(,$line) = each($output)){ echo $line, "
n"; } } ?>


Step Two:
Now place this code wherever you want the actual search form to appear
<form action="" method="POST">
<input type="text" name="site" value=".COM .NET .ORG">
<input type="submit">
</form>


No doubt that this will come of use for somebody...
0

#2 User is online   Kobius Icon

  • «• 千と千尋の神隠し •»
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • View blog
Group:
Administrator
Posts:
15,610
Joined:
25-August 05

Posted 11 January 2006 - 12:39 PM

Very useful for anyone looking to buy a domain, or get in touch with an owner of a current domain.

Great job Oosband.
Posted Image
0

#3 User is offline   cipcip Icon

  • AZ Mastermind
  • PipPipPipPipPipPipPipPipPip
  • View blog
Group:
Members
Posts:
2,624
Joined:
19-November 06

Posted 29 April 2007 - 08:16 AM

don`t work for me .. :(

take a look here too see ...

www.gfxclass.com/whois


and this is the index.php page i made ...

<? if($site != "") { exec("whois $site", $output, $error); while (list(,$line) = each($output)){ echo $line, "
n"; } } ?>
<html>
<head>
<title>WhoIs Search</title>
</head>
<body>
<center>
<form action="" method="POST"> 
<input type="text" name="site" value=".COM .NET .ORG"> 
<input type="submit"> 
</form>
</center>
<br />
<center><font face="Verdana, Arial, Helvetica, sans-serif" color="#666666" size="-2">Please join <a href="http://www.gfxclass.com" target="_blank">www.gfxclass.com</a> - A place for friends!</font></center>
</body>
</html>

This post has been edited by cipcip: 29 April 2007 - 08:18 AM

0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users