fsockopen() error : Network is unreachable port 43 in php [closed]
- by hamid
i've writed some Php code that lookup for domain (whois) but it fails !!
this is some of my code :
function checkdomain($server,$domain){
global $response;
$connection = fsockopen($server,43);
fputs($connection, "domain " . $domain . "\r\n");
while(!feof($connection)){
$response .= fgets($connection, 4096);
}
…