well, i guess there is NO OTHER WAY to check the availability of a domain
other than using whois server
<?php

$domain = "google.com\n";

$server = "rs.internic.net";

$port = 43;

$whois = fsockopen ($server,$port);

$res = fputs ($whois, $domain);

while (!feof ($whois)) {

$data .= fgets($whois,2024);

}

echo $data;

?>

I use the same concept as this minimalistic sample with a full list of whois
servers here http://www.dynamix-tn.com/?go=whois
just parse the domain and use the suitable server and most of the time it
return a fresh information, just use the suitable server.

PS : send your emails to [EMAIL PROTECTED] :)))

Hatem

----- Original Message -----
From: "Chandu Nannapaneni" <[EMAIL PROTECTED]>
To: "Hatem Ben" <[EMAIL PROTECTED]>
Sent: Sunday, November 17, 2002 8:21 PM
Subject: Re: [PHP] Whois Search in PHP


> No... U got me wrong..
>
> Actually I'm looking for PHP scripts which can
> tell about the availability of domains.
>
> Using a WhoIs script serves the purpose, but not always.
>
> So I want suggestions from anybody how I can Find out
> the availability of a domain ( sld + tld ) for fresh registration.
>
> /Chandu
> ----- Original Message -----
> From: "Hatem Ben" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, November 18, 2002 12:12 AM
> Subject: Re: [PHP] Whois Search in PHP
>
>
> > this is what the whois server return exactly for Google (using
> > whois.internic.net):
> >
> > Whois Server Version 1.3
> >
> > Domain names in the .com, .net, and .org domains can now be registered
> > with many different competing registrars. Go to http://www.internic.net
> > for detailed information.
> >
> > GOOGLE.COM.IS.THE.GREATEST.SEARCH.ENGINE.EVER.JIMPHILLIPS.ORG
> > GOOGLE.COM
> >
> > To single out one record, look it up with "xxx", where xxx is one of the
> > of the records displayed above. If the records are the same, look them
up
> > with "=xxx" to receive a full display for each record.
> >
> > >>> Last update of whois database: Sun, 17 Nov 2002 05:25:23 EST <<<
> >
> > The Registry database contains ONLY .COM, .NET, .ORG, .EDU domains and
> > Registrars.
> >
> > it isn't the problem of the whois script only :))
> >
> > Hatem
> >
> > ----- Original Message -----
> > From: "Chandu Nannapaneni" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, November 17, 2002 6:49 PM
> > Subject: [PHP] Whois Search in PHP
> >
> >
> > Hi guys,
> >
> > I have just downloaded whois2.php
> > from http://www.easydns.com/~markjr/whois2/
> >
> >
> > It's working great except for certain domains,
> > for ex : google.com is being shown as available.
> >
> > I am in need of a good PHP script which gives me
> > accurate results about availability of domains.
> >
> > /Chandu
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to