- ISSUE
- 뉴스정보
- 주식정보
- 유용한정보
- 포트폴리오
- 각종분석법
- 투자에 도움이 되는 글
- 가치투자재테크
- 로또645
- 로또마을
- 컴퓨터팁&테크
- 자격증&강좌모음
- 블로그팁&테크
- 스포츠종합
- 주식잡동사니
- 잡동사니
- 리치
인기 검색어

[인터리치]
쉬운돈벌기 제공 + 수익금지원
로또분석-플러스645
좋은책 모닝365
:+:+:+::[UCC 위젯 퍼가기]::+:+:+:
보험최저가로 가입하는요령 쉬운 돈벌기 방법
| abstract |
| compatible |
- PHP 4.0 or higher
- PHP 5 or higher
Whois protocol (defined by RFC 3912) is probably one of the simplest internet protocols.
In fact, whois client should open TCP connection to port 43, send query, send CR-LF ("\r\n" constant) and then receive response. Here is the source code:
<?php
function ae_whois($query, $server)
{
define('AE_WHOIS_TIMEOUT', 15); // connection timeout
global $ae_whois_errno, $ae_whois_errstr;
// connecting
$f = fsockopen($server, 43, $ae_whois_errno, $ae_whois_errstr, AE_WHOIS_TIMEOUT);
if (!$f)
return false; // connection failed
// sending query
fwrite($f, $query."\r\n");
// receving response
$response = '';
while (!feof($f))
$response .= fgets($f, 1024);
// closing connection
fclose($f);
return $response;
}
?>As you can see, function takes two arguments: whois query and whois server. Function returns server response (if everything was fine), or 'false' constant(that means connection failed). fsockopen error code and error string are written to global variables $ae_whois_errno and $ae_whois_errstr.
You can also change connection timeout by modifying AE_WHOIS_TIMEOUT constant.
Usage example: getting information about domain 'iphone.com'
<?php
// copy-paste function ae_whois(see above) here
echo ae_whois('iphone.com', 'whois.verisign-grs.com');
?>
태초에 나는 개그이야기를 만들었다.
내말을 믿고 나를 따르면 천당,
내말을 믿지않고 나를 따르지 않으면 지옥,
나는 하늘나라(우주)에 사느니라.
그럼 난 외계인?
이슈/로또/정보

Source for file ExtendedDriver.php