Author Topic: PHP Whois Tutorial  (Read 1225 times)

0 Members and 1 Guest are viewing this topic.

djape

  • Guest
PHP Whois Tutorial
« on: December 17, 2009, 04:58:31 PM »
Net_Whois Folder
Net_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 files
PEAR Base System
http://pear.php.net/package/PEAR/download

Net Folder
Network Socket Interface
http://pear.php.net/package/Net_Socket/download

who.php
Code: [Select]
<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
Code: [Select]
<?php
include("Net_Whois/Whois.php");
$whois = new Net_Whois();
$result $whois->query($_POST['text']);
echo 
"<br><pre>".$result."</pre>";
?>


« Last Edit: December 22, 2009, 05:14:26 PM by admin »

Offline vidra

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
Re: PHP Whois Tutorial
« Reply #1 on: December 25, 2009, 10:56:39 AM »
Thanks djape, very helpful!  :) :)

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1833 Views
Last post May 09, 2008, 02:57:08 PM
by Roby
5 Replies
3713 Views
Last post November 02, 2009, 09:44:59 AM
by djape
0 Replies
1512 Views
Last post June 19, 2007, 08:27:56 PM
by admin
0 Replies
2216 Views
Last post February 10, 2009, 04:28:28 AM
by admin