Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- jdbc driver
- ERD
- tempDB
- XML
- inner join
- asp함수
- FileSystemObject
- array
- WML
- wap
- xmldom
- 인젝션
- JavaScript
- sql업데이트
- 이미지세로길이
- SPLIT
- MSSQL보안
- update
- 정규식
- VarType
- join
- 이미지가로길이
- 자바기초
- sql순위
- javascript 한글입력체크
- instr
- injection
- 한글입력체크
- VARIABLE
- sql랭킹
Archives
- Today
- Total
3초기억력
ASP - 특정 페이지 소스 출력 하는 Function 본문
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
function View_Source(Target_URL)
'//파일오브젝트 생성
Set FSO_Open = Server.CreateObject("Scripting.FileSystemObject")
'//파일 경로지정
Filepath = Server.Mappath(Target_URL)
'//파일 오픈
Set File_Open = FSO_Open.OpenTextFile(Filepath, 1)
'//파일 읽고 변수에 값 넣음
Text_FSO = File_Open.ReadAll
'//닫기
Set File_Open = nothing
Set FSO_Open = nothing
'//ASP 파일에서 사용한 특정 캐릭터를 변환(순서 조심)
Text_FSO = Replace(Text_FSO, "&", "&")
Text_FSO = Replace(Text_FSO, " ", " ")
Text_FSO = Replace(Text_FSO, "<", "<")
Text_FSO = Replace(Text_FSO, ">", ">")
Text_FSO = Replace(Text_FSO, vbCrLf, "<br>")
'//변수를 뿌려준다
View_Source = Text_FSO
end function
'플밍_ASP' 카테고리의 다른 글
ASP - 윈도우2003 파일 업로드 게시판 구현시 수정사항 (0) | 2009.07.01 |
---|---|
ASP와 Oracle 데이터베이스 사이의 연결 문제를 해결하는 방법 (0) | 2009.04.15 |
ASP - 문자열을 hex코드로 변환 & hex코드를 문자열로 변환 (0) | 2009.02.06 |
ASP 함수 모음 (0) | 2009.01.30 |
ASP VBScript - 배열 선언 or IsArray (0) | 2009.01.30 |
Comments