I installed This script PHPwhois on my shared hosting server from go-daddy. I’s not getting the Whois information. On my localhost This working is working without any problem.
Here is my script
<?php
include_once('whois/whois.main.php');
$whois = new Whois();
$allowproxy = false;
$whois->non_icann = true;
$result = $whois->Lookup("facebook.com");
echo "<pre>";
print_r($result);
echo "</pre>";
?>
When performing external connections from godaddy servers you can only use ports 80 (http) or 443 (https). If you have specified any other ports it will be blocked.
See here, http://support.godaddy.com/help/article/287/do-you-support-fsockopen