note 63634 rejected from function.fsockopen by bjori

From: Date: Sun, 26 Mar 2006 15:04:58 +0000
Subject: note 63634 rejected from function.fsockopen by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-106637@lists.php.net to get a copy of this message
Note Submitter: dmitry dot polushkin at gmail dot com ---- Whois .eu domains: <?php /** * Whois .eu domains * * @param string $domain * @author Solid @ 2006 * @return string status */ function whois_eu($domain) { $fp = @fsockopen('das.eu', 4343); if($fp) { fwrite($fp, "get 1.0 ".$domain."\n"); while($d = fgets($fp, 128)) { if(preg_match("|^Status: (.*)$|U", $d, $tmp)) { $status = $tmp[1]; } } } return $status; } ?>

« previous php.notes (#106637) next »