|
|
|
|
ÇØÇÇ / 2001-06-01 / ¿ÀÈÄ 10:11:00 / 211.190.56.234
Á¶È¸¼ö : 162
|
[Áú¹®] global.asa¿À·ù |
¿À·ù Çü½Ä:
Microsoft VBScript ·±Å¸ÀÓ ¿À·ù (0x800A0035)
ÆÄÀÏÀ» ãÀ» ¼ö ¾ø½À´Ï´Ù.
/bjha/global.asa, line 7
óÀ½ Ä«¿îÅ͸¦ ½ÇÇàÇÏ¸é ¿À·ù°¡ ³ª°í
µÎ¹ø° »õ·Î°íħÇØ¾ß ¿À·ù°¡ ¾ø¾î¿ä.Ä«¿îÅÍ´Â
Àüü,ÇöÀç,¿À´Ã ÀÔ´Ï´Ù.
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
Dim FileObject, visitCountFileName, Out
Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
VisitCountFileName = Server.MapPath("visit.txt")
Set Out = FileObject.OpenTextFile(VisitCountFileName,1,FALSE,FALSE)
Application("Visit")=Out.ReadLine
Application("TodayVisit")=Out.ReadLine
Application("Today")=Out.ReadLine
Application("CurrentVisitor")=0
Application("VisitCountFileName")=VisitCountFileName
End Sub
Sub Application_OnEnd
Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
Set Out = FileObject.CreateTextFile(Application("VisitCountFileName"),TRUE,FALSE)
Application.Lock
Out.WriteLine(Application("Visit"))
Out.WriteLine(Application("TodayVisit"))
Out.WriteLine(Application("Today"))
Application.UnLock
End sub
Sub Session_OnStart
Dim FileObject, Out
Application.lock
Application("Visit")= Application("Visit")+1
Application("CurrentVisitor")=Application("CurrentVisitor")+1
if Application("Today") = date() then
Application("TodayVisit")=Application("TodayVisit")+1
Application("Today") = date()
else
Application("TodayVisit")=0
Application("Today") = date()
end if
Application.unlock
Session.Timeout = 20
If Application("Visit") MOD 5 = 0 Then
Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
Set Out = FileObject.CreateTextFile(Application("VisitCountFileName"),TRUE,FALSE)
Application.lock
Out.WriteLine(Application("Visit"))
Out.WriteLine(Application("TodayVisit"))
Out.WriteLine(Application("Today"))
Application.unlock
End If
End Sub
Sub Session_OnEnd
Application.Lock
Application("CurrentVisitor")=Application("CurrentVisitor")-1
Application.UnLock
End Sub
</SCRIPT>
|
|
|
|