Develop
2003.04.23 09:45

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

Views 11733 Votes 0 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
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
No. Category Subject Author Date Views
1157 Etc How to completely Uninstall Coda hooni 2017.10.24 2161
1156 System/OS How to Install and Use wget on Mac file hooni 2020.09.03 1279
1155 System/OS How to Setup an Email Server on CentOS 7 hooni 2018.04.05 2783
1154 Develop How to Test SMTP AUTH using Telnet hooni 2018.04.05 1335
1153 System/OS HTTP 프로토콜 (브라우저와 웹서버 간의 통신) hooni 2003.04.23 48250
1152 System/OS HTTPS와 SSL 인증서 file hooni 2014.03.11 7546
1151 Etc iOS 에서 쓸만한 오프라인 구글지도 찾기 hooni 2014.01.06 16035
1150 Etc IoT가 만드는 미래와 플랫폼 경쟁력 secret hooni 2014.09.23 0
1149 Etc IPR 특허 관련 secret hooni 2015.04.28 0
1148 System/OS iptime 공유기 해킹 기술문서 4 file hooni 2015.01.01 1941
1147 Etc ISMS 인증기준 – 정보보호대책 (시스템개발보안) file hooni 2016.12.01 1308
1146 Etc IT감사 기법 시험 file hooni 2017.06.14 1418
1145 Develop JSON, BSON 변환 file hooni 2013.04.23 11814
1144 Develop Laravel 5 Failed opening required bootstrap/../vendor/autoload.php hooni 2018.01.24 1654
1143 System/OS Mac OS X - Apache+PHP+MySQL 환경 서버 hooni 2013.04.25 31627
1142 Develop Mac OS 에 Jenkins 설치하기 (Homebrew) 2 file hooni 2017.03.15 8101
Board Pagination Prev 1 2 3 4 5 ... 74 Next
/ 74