Can you tell me what you think of that, is there any way to be quicker and
easier, and maybe some advice on how to retrieve and parse the file..
because I dont really know how to..
Thank you..
Fred.
Internic no longer allows scripted access to the whois information, they
require you to enter a "security code" that is in a JPG and is not textual.
There are whois applicatons that search most of the registrars for the
information, but you will need to find one that works and script it from
there... It was soooo easy when there was only one registrar... One of
the other issues is the fact that not all registrars present the data in
the same format.
Michael Austin.
"John Downey" <jdo...@gmail.com> a écrit dans le message de
news:163e97b1.04070...@posting.google.com...
<snip>
<?php
//
function whois($host, $command)
{
$fp = fsockopen ($host, 43, $errno, $errstr, 100);
if (!$fp)
$result = $errstr . $errno . "\n";
else
{
fputs ($fp, $command . "\r\n\r\n");
$result = '';
while (!feof($fp))
$result .= fgets ($fp, 128);
fclose ($fp);
}
return $result;
}
//debug...
echo whois('whois.internic.net', 'php.net');
?>
See their TOS.
--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Or!!!! you could contract someone that already has this code available
(but not on Linux or Windows) that can do this for you and send you a
CSV file you can load into your database. Some guy by the name of
Michael Austin comes to mind... :) :)
Michael Austin
http://www.firstdbasource.com
"Michael Austin" <mau...@firstdbasource.com> a écrit dans le message de
news:E8yHc.7354$d92....@newssvr23.news.prodigy.com...
I recently received a whois kit that runs only on OpenVMS that talks to
nearly every registrar - at least a large number of them... I have a
whois page that gets the data for a single domain name. A slight
modification of this page would be able to iteratively read a file or db
containing the list of domains, do the inquiry and parse the information
you are looking for and output it in whatever format suits your fancy.
Unfortunately, this particular whois program does not have sources
available for porting to *x or Wxx.
And currently being unemployed, I have lots of time on my hands, but I
also have this quirk whereby, for some unexplainable reason, I need to
be able to eat as well... ;) (I also presume that the author of the
whois app also likes to be able to eat. )
Michael Austin.
http://www.firstdbasource.com/donation.html (works in IE - having
problems with FireFox)