Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> About Whois System, searching websites' information
kakingho
post Jan 19 2006, 03:32 PM
Post #1


Member [Level 1]
****

Group: Members
Posts: 52
Joined: 17-July 05
From: hong kong
Member No.: 9,520



I want to install whois system in my website in which my visitors can search other websites' information.

I want to have php source code of it.
Is it free of charge? ohmy.gif
What is the official website of WHOIS??!

thx~ cool.gif

Go to the top of the page
 
+Quote Post
SqlByte
post Jan 20 2006, 04:19 AM
Post #2


Premium Member
********

Group: Members
Posts: 172
Joined: 18-August 05
Member No.: 10,836



official whois site.. hmm im not sure that something like that exist.

and for that script
try at:
http://www.hotscripts.com/PHP/Scripts_and_...rams/index.html
im sure that i saw there one.. use search.
Go to the top of the page
 
+Quote Post
Amezis
post Jan 26 2006, 06:27 PM
Post #3


Privileged Member
*********

Group: Members
Posts: 535
Joined: 14-February 05
From: Oslo, Norway
Member No.: 3,759



There is no official WHOIS site, as far as I know. Also, I don't know if you can make a PHP script showing WHOIS information...
Go to the top of the page
 
+Quote Post
Zythrix
post Jan 26 2006, 06:31 PM
Post #4


Premium Member
********

Group: Members
Posts: 156
Joined: 26-January 06
From: Beaverton, OR, USA
Member No.: 17,687



I believe this is what you're looking for

http://www.finalwebsites.com/snippets.php?id=13

Found initially on Codebeach.com

If you havent been to codebeach.com .. check it out.

( I dont know PHP so I didnt check to see if it's exactly what you needed or not.. I didnt see a demo of it on the Codebeach site either.. but I'm sure it's worth a look at least)

=)
Go to the top of the page
 
+Quote Post
Spectre
post Jan 30 2006, 03:55 PM
Post #5


Privileged Member
*********

Group: Members
Posts: 873
Joined: 30-July 04
Member No.: 246



Whois information can be accessed from whoever the official authority over that particular TLD is. For example, VeriSign Global Registry Servers controls the .COM and .NET top-level domains, so you would access their whois servers to retrieve a whois record for any .COM domain name (such as trap17.com).

Note that whois servers operate on port 43, so you would need to connect, in this example, to whois.verisign-grs.com:43 to retrieve a whois record. After connection, all you need to send to the server is the domain name followed by CR+LF (\r\n or chr(13).chr(10)), and the whois server will return the record if the domain exists (or will inform you if it doesn't).

You will need to know a little about socket coding to access a whois records, regarldess of which programming language you wish to do it in.

Here is an example of retrieving a whois record. I quickly constructed this while writing this post, and haven't tested it - theoretically, at least, it should work.

CODE
<?php

function whois_record( $domain_name, $whois_server = 'whois.verisign-grs.com' ) {
 if( !($socket = @fsockopen($whois_server,43) ) {
   die('Could not connect to whois server.');
 }
 // Note that the '=' symbol means the domain name is explicit, and instructs the whois server to return a result for that domain name only, not for other possible matches (e.g. try 'google.com' without the equals symbol).
 fputs($socket, "=$domain_name\r\n");
 $whois_record = '';
 while( !feof($socket) ) {
   $whois_record .= fgets($socket,1024);
 }
 fclose($socket);
 return $whois_record;
}

?>
Go to the top of the page
 
+Quote Post
Spectre
post Jan 30 2006, 03:56 PM
Post #6


Privileged Member
*********

Group: Members
Posts: 873
Joined: 30-July 04
Member No.: 246



Er, that's VeriSign Global Registry Services. Typing mistake, sorry.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Weigh Too Much?(4)
  2. Learn Html, Css, C And C++ Online For Free(13)
  3. Incremental Backups(2)
  4. Credit System V3.0 Online(158)
  5. My Trap17-information Blog(4)
  6. School's Blocking System.(30)
  7. Everything About Mycents - Your Virtual Money(23)
  8. Some Nutrition Websites I Like(0)
  9. New System Shuts Down After Running About 1 Minute(14)
  10. How To Download Youtube Videos(35)
  11. How To Remember Complex Passwords(14)
  12. Everything About Our Billing System? Shopping System? Support Center.(0)
  13. Google Operating System(9)
  14. Point / Credit System(5)
  15. What Operating System Do You Use?(24)
  1. Level Up System?(3)
  2. Make A Moderately-secure Password System Using Javascript(10)
  3. Setting Up A New Free Account [resolved](14)
  4. Galexcd's Last Credit Giveaway!(16)
  5. If We Have Negative Hosting Credits, Are They Pushed Over To The New Mycent System?(7)
  6. Useful Websites For Web Developers(2)
  7. Credit System V3 And Multiple Accounts, Trap17 And Astahost Forums(12)
  8. What's Your Favorite Game System - Console(186)
  9. Install Two Anti-virus Software In 1 System(39)
  10. Transferring My Account(3)
  11. Secure FTP information and assistance required(2)
  12. V3 Credit System Hosting Requirements(9)
  13. Its's Official Microsoft Is Done With The Windows Operating System(29)
  14. Blood Grouping System(5)
  15. Credit System 3, I Changed My Email, Now What?(6)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 02:12 PM