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###################

?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
777 Develop [linux] CentOS Apache 웹서버에 HTTPS 적용 hooni 2015.10.23 794
776 System/OS [linux] CentOS Apache Httpd에 https 적용 hooni 2014.03.05 4485
775 System/OS [linux] CentOS 6.x Cati 설치 (yum) hooni 2014.01.17 48596
774 System/OS [linux] CentOS 6.5 에서 "Bringing up interface eth0: Determining if ip address 121.78.127.197 is already in use for device eth0..." hooni 2014.04.05 4862
773 System/OS [linux] awk 명령어 hooni 2014.03.11 4959
772 System/OS [linux] APM(apache, php, mysql) + gd 설치순서.. hooni 2003.04.23 18854
771 System/OS [linux] apache, php, jsp 환경설정하기.. hooni 2003.04.23 15246
770 System/OS [linux] /etc/fstab 설정 방법.. ㅋㅋ hooni 2013.04.23 12086
769 Etc [link] 유용한 사이트 링크. hooni 2013.08.19 71474
768 Etc [link] iOS(아이폰) 개발 관련 ㅋㅋ hooni 2013.04.23 21507
767 Develop [lego] 세그웨이 이것만 볼것.. ㅎㅎ file hooni 2013.04.23 33538
766 Develop [kotlin] 코틀린 안드로이드 앱 버전/빌드 정보 hooni 2020.12.15 831
Board Pagination Prev 1 ... 29 30 31 32 33 34 35 36 37 38 ... 98 Next
/ 98