phpbar.de logo

Mailinglisten-Archive

[php] =?iso-8859-1?Q?verf=FCgbarkeit?= von de und com/net etc. domains =?iso-8859-1?Q?pr=FCfen?=

[php] =?iso-8859-1?Q?verf=FCgbarkeit?= von de und com/net etc. domains =?iso-8859-1?Q?pr=FCfen?=

Tobias Orterer Tobias.Orterer_(at)_FutureByte.net
Wed, 02 Aug 2000 21:31:01 +0200


function domcheck($domain, $tld)
{
	$cmd = "whois ";

	if($tld == ".com" || $tld == ".org" || $tld == ".net")
	{
		$cmd .= "-h internic.net ".$domain.$tld;
	}
	if($tld == ".de")
	{
		$cmd .= "-h whois.nic.de ".$domain.$tld;
	}
	$result = `$cmd`;
	if(strstr(strtolower($result),"no entries") ||
strstr(strtolower($result),"no match"))
	return true;
	else
	return false;
}

if(preg_match("/^[a-zA-Z0-9\-]{3,63}$/",$domain)) { ... }
is dann auch sehr hilfreich...

mfg
Tobias "LuXuS" Orterer


--
[        Tobias Orterer - Webdesign         ]
[ FutureByte GmbH - Ihr Internet-Systemhaus ]
[        http://www.FutureByte.net          ]



Sebastian Wolfgarten schrieb:
> 
> Hallo,
> 
> wie finde ich ein PHP Skript, welches de/com/net/org etc. Domains
> auf deren Verfügbarkeit testet?
> 
> Gruß
> Sebastian
> 
> --
> ** Durchgehend geöffnet: http://www.php-center.de **
> Die PHP-Liste: mailto:php_(at)_php-center.de
> http://infosoc.uni-koeln.de/mailman/listinfo/php


php::bar PHP Wiki   -   Listenarchive