fin Posted May 28, 2006 Report Share Posted May 28, 2006 Varbūt kādam ir zināšanas kā lapā ielikt iespēju pārbaudīt eksistē vai neeksitē vēlamais domeins? Tjipa nic.lv un 2000.lv tas ir uztaisīts. Jau iepriekš, PALDIES Link to comment Share on other sites More sharing options...
SkyD Posted May 28, 2006 Report Share Posted May 28, 2006 http://www.hotscripts.com/PHP/Scripts_and_...ng_Tools/Whois/ Link to comment Share on other sites More sharing options...
Roze Posted May 28, 2006 Report Share Posted May 28, 2006 http://lv.php.net/manual/en/function.checkdnsrr.php http://lv.php.net/manual/en/function.dns-get-record.php Link to comment Share on other sites More sharing options...
fin Posted June 1, 2006 Author Report Share Posted June 1, 2006 PALDIES Link to comment Share on other sites More sharing options...
hmnc Posted June 2, 2006 Report Share Posted June 2, 2006 Note: This function is not implemented on Windows platforms, nor does it (currently) work on *BSD systems. Try the PEAR class Net_DNS. Link to comment Share on other sites More sharing options...
J0ke Posted June 2, 2006 Report Share Posted June 2, 2006 un tur pat tālāk komentāros: The checkdnsrr function is not implemented on the Windows platform. The way to get around this problem is to write your own version of checkdnsrr. Example: myCheckDNSRR <?php function myCheckDNSRR($hostName, $recType = '') { if(!empty($hostName)) { if( $recType == '' ) $recType = "MX"; exec("nslookup -type=$recType $hostName", $result); // check each line to find the one that starts with the host // name. If it exists then the function succeeded. foreach ($result as $line) { if(eregi("^$hostName",$line)) { return true; } } // otherwise there was no mail handler for the domain return false; } return false; } ?> Note that the type parameter is optional, and if you don't supply it then the type defaults to "MX" (which means Mail Exchange). If any records are found, the function returns TRUE. Otherwise, it returns FALSE. Link to comment Share on other sites More sharing options...
Recommended Posts