Jul 6, 2008

About Whois System - searching websites' information

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

About Whois System - searching websites' information

kakingho
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


Reply

SqlByte
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.

Reply

Amezis
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...

Reply

Zythrix
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)

=)

Reply

Spectre
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;
}

?>

 

 

 


Reply

Spectre
Er, that's VeriSign Global Registry Services. Typing mistake, sorry.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : whois, system, searching, websites, information

  1. Bbcodes On Websites
    (18)
  2. How To Insert Post Information Without A Form
    How to insert post information without a form (1)
    I am relatively new with web design so I don't even know exactly what to ask here, but this
    can't be as hard as I am making it. I am a merchant and I want to pass just a few simple
    strings to the credit card processor: my merchant ID and pin, as well as a price and a few other
    simple variables. I want the merchant ID and pin to be invisible to the user. ....
  3. Getting Information From Submit Button
    I need to grab information from a submit button. (1)
    I basically have an array that uses characters as keys and has an integer value to it. I have a
    loop that outputs the list in that array. For each entry I want a a button to remove it. The button
    will submit the form to another page which contains the script to be able to remove it from the
    array. The infomation for the keys name is used for the buttons name value. Im not sure how you go
    about grabbing this information once on the submitted page. heres my code CODE
    echo("<form name='jobs' action='remove_job.php'>"); foreach....
  4. Editing Information In A Mysql Database And Deleting Rows
    (5)
    I need help with a couple of things. First, I need to know how to retrieve information from a mysql
    database and edit it then re add it to the database. I also would like to know how to easily delete
    a mysql row. And I want this done without going to phpMyAdmin. Thanks for the help!....
  5. Php Whois Tutorial
    Looking for Good tutorial (9)
    Hi to all Today i want make one php whois script , but i can not find any good tutorial about that ,
    i know we can find many free php script @ hotscript , but i want make own whois . if you have good
    link of good tutorial please post here or send pm to me at forum . to help me thanks to all
    /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> ....
  6. Integrating Two Websites
    (5)
    Hi Everyone , i currently have two websites which were installed with opensource scripts,now i want
    the users of one site to be able to access the other site without logging in . see if user A goes to
    1 st website and logs in it. use the feature of the website ,then from his account he goes to a link
    to other site ,i want him to be logged in the other site automatically with the help of his cookie
    from the first site. i just want the logic for this ,i know only very basic php ,so i would be
    learning from php tutorials on the internet and doing this . /smile.gif" style="....
  7. Searching In Mysql
    (7)
    Well, I am creating a search script for a MySQL-database. But how can people submit "first second",
    and then the script searches for both of the words, not the exact phrase? So if someone types
    "first second" it will also show entries containing "first blablabla second". This is basically the
    code I am using: CODE SELECT * FROM `$table` WHERE `row` LIKE
    '$text' But this only shows the exact phrase /unsure.gif"
    style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" />....
  8. Login / Authetication System Using Database
    adding information (4)
    Is there any way to make such database where I can write like name and passwords.. Then make an
    login box, and when somebody trys to acces the login he needs to write the name and password.. Then
    it is verifyed if is there such name and password and if it is then acces the page.. I think there
    is posible something like that with MySQL (db).. but can anybody say me a script or way to make
    something like that? Alredy thanks......

    1. Looking for whois, system, searching, websites, information

Searching Video's for whois, system, searching, websites, information
advertisement



About Whois System - searching websites' information



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE