The program I have does a Whois search but can not use port 43 at Godaddy hosting.
http://www.netbonded.com/whois/samswhois.inc.php.
This is the code where the error occurs.
function dolookup($domain, $server){
$domain = strtolower($domain);
$server = strtolower($server);
if( $domain == '' || $server == '' ) return false;
if( $this->m_cachelifetime > 0 ){
$data = $this->readfromcache($domain, $server);
if( $data != '' ) return $data;
}
$data = "";
$fp = @fsockopen($server, 43,$errno, $errstr, $this->m_connectiontimeout);
if( $fp ){
@fputs($fp, $domain."\r\n");
@socket_set_timeout($fp, $this->m_sockettimeout);
while( !@feof($fp) ){
$data .= @fread($fp, 4096);
}
@fclose($fp);
if( $this->m_cachelifetime > 0 ) $this->writetocache($domain, $server, $data);
return $data;
}else{
return "\n\Error - could not open a connection to $server\n\n";
}
}
This is what the hosting company sent but I Do Not Known what to do with the code. It does not fit with this type of code. I have never programmed PHP. How do I redirect the port to where the hosting company has the proxy server?
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY,
http://64.202.165.130:3128);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
Thank you