Net_Whois FolderNet_Whois class provides a tool to query internet domain name and network number directory services
http://pear.php.net/package/Net_Whois/download
PEAR.php PEAR5.php filesPEAR Base System
http://pear.php.net/package/PEAR/download
Net FolderNetwork Socket Interface
http://pear.php.net/package/Net_Socket/download
who.php<form action="whois.php" method="post">
<table style="font-family:arial" align="center" valign="middle">
<tr>
<td>
Domain name: e.g. google.com
</td>
<td>
<input type="text" name="text">
</td>
</tr>
<tr>
<td>
<input type="submit" name="submit">
</td>
</tr>
</table>
</form>
whois.php<?php
include("Net_Whois/Whois.php");
$whois = new Net_Whois();
$result = $whois->query($_POST['text']);
echo "<br><pre>".$result."</pre>";
?>