ściągnąłem z sieci skrypt, który ma za zadanie sprawdzenie czy podana domena jest zajęta czy nie.
function checkDomainReg($domain, $server="whois.crsnic.net") { $lineNumber = 8; // open a socket connection to a whois server //return each line of stout and place it in $serverReturn $x++; if ($x == $lineNumber) { $line = $serverReturn; } } //tokenize the string so we can find the No if ($token == 'No') { $result = 0; } else { $result = 1; } return $result; }
Tylko przy podaniu domeny wyświetla mi błąd:
Warning: fsockopen() [function.fsockopen]: unable to connect to whois.crsnic.net:43 (Operation not permitted) in ... on line 31
Próbowałem zmieniać serwer Whois ale to nie dało rezultatu. głównie chodzi mi o przeszukiwanie domen niemieckich.
Z góry dziękuje za pomoc.