삽질중 우연히 아래 소스를 발견해서 올립니다.
참고하세요.
<html>
<head>
<title>::: 노글스 :::</title>
</head>
<body>
<input type=button onClick=chk() value="chk">
결과
<script>
var sHttp = new ActiveXObject("Microsoft.xmlhttp");
function httpGet(szURL) {
sHttp.open("get",szURL,false);
sHttp.setRequestHeader( "Content-type:", "application/x-www-form-urlencoded");
sHttp.setRequestHeader("Content-Encoding:", "euc-kr");
sHttp.onreadystatechange = onRetriveComplete;
try{
sHttp.send("code=tnt2");
}
catch(e) {
return ("Not exist");
}
if (sHttp.status > 200) {
return("not exist<br>");
} else
return(sHttp.responseText);
}
function onRetriveComplete() {
sHttp.onreadystatechange = noop; //re-entrant gate
if (sHttp.readyState == 4) {
}
}
function noop() {
return false;
}
function chk() {
getData=httpGet("http://www.phpschool.com/bbs2/inc_board.html");
document.noglsForm.test.value=getData;
}
</script>
<form name=noglsForm>
<textarea name=test rows=200 cols=200></textarea>
</form>
</body>
</html>
//////////php스쿨발췌~~<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
참고하세요.
<html>
<head>
<title>::: 노글스 :::</title>
</head>
<body>
<input type=button onClick=chk() value="chk">
결과
<script>
var sHttp = new ActiveXObject("Microsoft.xmlhttp");
function httpGet(szURL) {
sHttp.open("get",szURL,false);
sHttp.setRequestHeader( "Content-type:", "application/x-www-form-urlencoded");
sHttp.setRequestHeader("Content-Encoding:", "euc-kr");
sHttp.onreadystatechange = onRetriveComplete;
try{
sHttp.send("code=tnt2");
}
catch(e) {
return ("Not exist");
}
if (sHttp.status > 200) {
return("not exist<br>");
} else
return(sHttp.responseText);
}
function onRetriveComplete() {
sHttp.onreadystatechange = noop; //re-entrant gate
if (sHttp.readyState == 4) {
}
}
function noop() {
return false;
}
function chk() {
getData=httpGet("http://www.phpschool.com/bbs2/inc_board.html");
document.noglsForm.test.value=getData;
}
</script>
<form name=noglsForm>
<textarea name=test rows=200 cols=200></textarea>
</form>
</body>
</html>
//////////php스쿨발췌~~<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
댓글 4개
게시글 목록
| 번호 | 제목 |
|---|---|
| 475 |
MySQL
MySQL 덤프방법(dump)
1
|
| 474 |
MySQL
여러데이터베이스 사용하는 방법
|
| 468 |
기타
PHP 기초 테크닉
5
|
| 18578 | |
| 17803 |
HTML
연산자(Operators)
1
|
| 17802 |
HTML
PHP 제어구조
|
| 463 |
기타
주요메타테그 모음
4
|
| 461 |
MySQL
백업&복구(전체/부분/테이블)
1
|
| 460 | |
| 459 | |
| 458 |
MySQL
리눅스 기본 명령어 모음[펌]
|
| 454 |
JavaScript
dhtml menu (pull down, top down 방식 메뉴)
3
|
| 451 | |
| 446 | |
| 443 | |
| 440 |
JavaScript
체크박스를 이미지로...
2
|
| 439 |
기타
리눅스의 디렉토리 구성
|
| 436 | |
| 435 | |
| 434 |
MySQL
MySQL root 패스워드 분실했을 경우
|
| 427 | |
| 418 |
JavaScript
PHP 홈페이지
8
|
| 411 | |
| 406 |
Linux
리눅스 배포판 선택하기
4
|
| 401 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기