Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- form
- Getrows
- replace
- ajax
- PHP GCM
- synology
- 따라다니는 배너
- readonly
- DS718+
- jquery 레이어
- ASP
- 크로스 컴파일
- SQL Injection
- disabled
- lsusb
- RTL88x2BU
- javascript
- utf-8
- XMLHTTP
- submit
- println
- AC1300
- euc-kr
- FileSystemObject
- Injection
- 시놀로지
- include
- 무선랜카드
- 커널
- jQuery
Archives
- Today
- Total
아는 것이 좋은 것이다.
[ASP] 배너 카운트 처리 본문
<%
Const ForReading = 1, ForWriting = 2, ForAppending = 8
'개체 선언
Set Fso = Server.CreateObject("Scripting.FileSystemObject")
Set Fso_Get = Fso.GetFile(Server.MapPath("/") & "\banner_count.txt")
Set Fso_Str = Fso_Get.OpenAsTextStream(ForReading, -2)
'불러오기
Num = Int(Num + Fso_Str.ReadLine)
'내용 입력
Set Fso_In = Fso.CreateTextFile(Server.MapPath("/") & "\banner_count.txt", true)
Fso_In.WriteLine(Int(Num) + 1)
'개체 소멸
Fso_Str.Close()
Set Fso_Str = Nothing
Set Fso_Get = Nothing
Set Fso_In = Nothing
Set Fso = Nothing
Response.Write "<script>document.location.href = 'banner.asp';</script>"
Response.End
%>
'ASP' 카테고리의 다른 글
[ASP] <textarea> 내의 내용 줄바꿈처리(br) 방법 (0) | 2014.04.24 |
---|---|
[ASP] 이미지 가져오기(참고) (0) | 2014.04.24 |
[ASP] 이미지 리사이즈 (0) | 2014.04.24 |
[ASP] 파일을 DB에 업로드, 다운로드 하기(참고용) (0) | 2014.04.24 |
[ASP] DB에 있는 이미지 다운로드 (0) | 2014.04.24 |
Comments