삽질중 우연히 아래 소스를 발견해서 올립니다.
참고하세요.
<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>
댓글 6개
게시글 목록
| 번호 | 제목 |
|---|---|
| 283 | |
| 282 | |
| 281 |
JavaScript
링크 시킨 파일 찾기
|
| 280 |
JavaScript
리눅스 하드웨어 정보 보기
|
| 279 | |
| 278 | |
| 277 |
MySQL
my.cnf 파일은 위치..
|
| 276 |
MySQL
부팅시 자동으로 mysql 서버 자동실행
|
| 274 |
MySQL
MySQL 루트비번 분실시 대처요령
1
|
| 273 |
MySQL
mysql에서 log 파일 남기기
|
| 272 |
MySQL
ALTER 테이블 추가,변경
|
| 271 |
MySQL
sql 파일로 테이블 간단히 만들기
|
| 270 |
MySQL
mysql 4.1 의 password()
|
| 269 |
MySQL
mysql 에서 최대 사용자 수
|
| 266 | |
| 265 | |
| 264 |
기타
핑(ping) 막기
|
| 263 | |
| 262 |
JavaScript
su 사용자 제한하기
|
| 261 | |
| 260 |
JavaScript
기본적인 삼바 설정
|
| 259 |
기타
실시간 로그 보기..
|
| 258 | |
| 257 |
JavaScript
부팅 로고 삭제
|
| 256 |
JavaScript
콘솔에서 해상도 높이기
|
| 255 | |
| 254 | |
| 253 |
JavaScript
ssh로 접속할때 메시지를 보여주는 방법..
|
| 252 |
JavaScript
아파치 로그 정리(압축) logrotate
|
| 251 |
MySQL
아파치와 mysql 자동실행 시키는 방법..
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기