Contents

Develop
2003.04.23 09:45

[php] whois정보 조회 프로그램

조회 수 11735 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
1.whois.htm 
2.view.php 
##############Whois.htm start################### 
<script> 
function kr_domain(form){ 
        if (!kr.k_domain.value){ 
                alert('도메인 써야 대는데..ㅡㅡ;'); 
                kr.k_domain.focus(); 
                return false; 
        } 
        form.submit(); 
function inter_domain(form){ 
        if (!inter.i_domain.value){ 
                alert('도메인 써야 대는데..ㅡㅡ;'); 
                inter.i_domain.focus(); 
                return false; 
        } 
        form.submit(); 
</script> 
<table border=1> 
<tr> 
<td align=center>도메인 검색</td> 
</tr> 
<tr> 
<td> 
        <table border=1> 
        <form method=get name=kr action=view.php> 
        <input type=hidden name=g value=1> 
        <tr><td><input type=text name=k_domain size=20></td></tr> 
        <tr align=center><td><input type=button value='국내도메인검색' onclick=kr_domain(this.form);></td></tr> 
        </form> 
        </table> 
</td> 
</tr> 
<tr> 
<td> 
<table border=1> 
<form method=get name=inter action=view.php> 
<input type=hidden name=g value=2> 
<tr><td><input type=text name=i_domain size=20></td></tr> 
<tr align=center><td><input type=button value='국제도메인검색' onclick=inter_domain(this.form);></td></tr> 
</form> 
</table> 
</td> 
</tr> 
</table> 
############## Whois.htm end################### 
############## view.php start################### 
<? 
        if($g==1)$domain="$k_domain"; 
        if($g==2)$domain="$i_domain"; 
        if($g==1)$fp=fsockopen("whois.krnic.net",43); 
        if($g==2)$fp=fsockopen("whois.opensrs.net",43); 

        if(!$fp){ 
                echo "whois 접속실팸돳!!!!!"; 
                exit; 
        } 

        fputs($fp,"$domain"."n"); 
        while(!feof($fp)){ 
                $result .= fgets($fp,80); 
        } 
        fclose($fp); 
        $result = nl2br($result); 
        echo "$result"; 
        echo "<input type=submit value=' 뒤로 ' onclick=history.go(-1)>"; 
?> 
############## view.php end###################

?

  1. [linux] 아파치설치/설정

  2. [linux] 기본 명령어 (내공쌓기)

  3. [c] 메시지큐(Message Queue) 설명.. (joinc)

  4. [c] vc++ 에서 clrscr(), gotoxy() 함수 사용하기..

  5. [c] 64bit 머신에서 inet_ntoa() 사용시 Segment fault 대처 방법법

  6. [C] C언어의 조건 연산자(Conditional Operator)

  7. [linux] ipchains 사용예(패킷 필터링)

  8. [linux] ssh에서 원격 파일 전송하기..

  9. [linux] 아파치설치/설정(모니터링)

  10. [c] 민수형 libipq 샘플 소스 ㅋㅋ

  11. [linux] 기본적인 설정하기(내공쌓기)

  12. OPT와 CAS에 대한 자료.. (교수님 메일로 보내드린 자료..)

Board Pagination Prev 1 ... 21 22 23 24 25 26 27 28 29 30 ... 98 Next
/ 98