´ç½Å¿¡°Ô·Î ¶°³ª´Â ²Þ¼Ó¿©Çà - ²Þ¼Ó³ª¶ó(http://www.inyourdream.net) ÀÔ±¹Çϱâ | ¿µÁÖ±Ç ½Åû
  • ¸öºÎ¸² °ñ¶ó°ñ¶ó
  • ¼Ò±Ù¼Ò±Ù
  • µµ¶õµµ¶õ
  • ³«¼­¸¶´ç
  • Âø°¢ÇѾÆÀÌ
  • ¼ýÀÚ¸ÂÃß±â
  • ¼Ò¿øºô±â
  • ÈçÀû³²±â±â
  • ²Þ¼Ó¿©Çà
  • Ä£±¸Áý ³î·¯°¡±â
  • ¸ðµÎµå¸²´ÔÀÇ È¨
  • î¤éÞ´ÔÀÇ È¨
  • Çö¿ì´ÔÀÇ È¨
  • º°¾ÆÇØ´ÔÀÇ È¨
  • ÇÞ»ì´ÔÀÇ È¨
  • À̳ª´Ï´ÔÀÇ È¨
  • À¯¸®¾Ë´ÔÀÇ È¨
  • ³È³ÈÀÌ´ÔÀÇ È¨
  • ²ÀÁö´ÔÀÇ È¨
  • ´ë¼º´ÔÀÇ È¨
  • ÇÁ¸®¸Ç / 2001-10-27 / ¿ÀÈÄ 12:02:30 / 211.214.83.220
    Á¶È¸¼ö : 177
    [Áú¹®] Ä«¿îÅÍ ¼Ò½º Çѹø ºÁÁÖ¼¼¿ä.<
    <SCRIPT LANGUAGE="VBScript" RUNAT="Server">

    Sub Application_OnStart

    Set fso = Server.CreateObject("Scripting.FileSystemObject")
    VisitCountFileName = "f:\inetpub\wwwroot\bestdaytest\visitnum\visit.txt"
    Set Out = fso.OpenTextFile(VisitCountFileName,1,false,FALSE)

    'ÃÑ Ä«¿îÅÍ Àоî¿À±â
    Application("visit")=Out.ReadLine
    Application("VisitCountFileName")=VisitCountFileName

    Application("now_visit") = 1
    '
    ' ¿À´ÃÀÇÄ«¿îÆ® ½ÃÀÛ

    'Ä«¿îÆ®Àоî¿À±â ½ÃÀÛ
    todayfilepath = "f:\inetpub\wwwroot\bestdaytest\visitnum\today_visit.txt"
    set todayout = fso.OpenTextFile(todayfilepath,1,false,false)

    application("today_visit")=todayout.readline
    application("todayfilepath")=todayfilepath
    'Ä«¿îÆ®Àоî¿À±â ³¡

    '³¯Â¥Àоî¿À±â ½ÃÀÛ
    todayfilepath_day = "f:\inetpub\wwwroot\bestdaytest\visitnum\today_visit_day.txt"
    set todayout_day = fso.OpenTextFile(todayfilepath_day,1,false,false)

    application("today")=todayout_day.readline
    application("todayfilepath_day")=todayfilepath_day
    '³¯Â¥Àоî¿À±â ³¡

    ' ¿À´ÃÀÇÄ«¿îÆ® ³¡

    set fso = nothing
    End Sub

    Sub Application_OnEnd

    Set fso = Server.CreateObject("Scripting.FileSystemObject")

    ' ÃÑ ¹æ¹®ÀÚ ÀúÀå
    Set Out = fso.CreateTextFile(Application("VisitCountFileName"),TRUE,FALSE)
    Out.WriteLine(Application("visit"))


    '¿À´ÃÀÇ Ä«¿îÆ® ½ÃÀÛ

    '¿À´ÃÀÇ Ä«¿îÆ® ÀúÀå ½ÃÀÛ
    set todayout=fso.createtextfile(application("todayfilepath"),true,false)
    todayout.writeline(application("today_visit"))
    '¿À´ÃÀÇ Å¸¿îÆ® ÀúÀå ³¡

    '¿À´ÃÀÇ ³¯Â¥ ÀúÀå ½ÃÀÛ
    set todayout_day=fso.createtextfile(application("todayfilepath_day"),true,false)
    todayout_day.writeline(application("today"))
    '¿À´ÃÀÇ ³¯Â¥ ÀúÀå ³¡

    '¿À´ÃÀÇ Ä«¿îÆ® ³¡

    set fso = nothing

    End sub

    Sub Session_OnStart

    ip = request("remote_addr")
    Application.lock
    Application("visit")= Application("visit")+1
    Application.unlock


    Application.lock
    Application("now_visit")= Application("now_visit")+1
    Application.unlock

    '

    if Application("today_visit") mod 5 = 0 then
    '
    '¿À´ÃÀÇ Ä«¿îÆ® ÀúÀå ½ÃÀÛ
    Set fso= Server.CreateObject("Scripting.FileSystemObject")
    set todayout=fso.createtextfile(application("todayfilepath"),true,false)

    Application.Lock
    todayout.writeline(application("today_visit"))
    Application.UnLock
    '¿À´ÃÀÇ Å¸¿îÆ® ÀúÀå ³¡
    Set fso=nothing
    end if

    '¿À´ÃÀÇ Ä«¿îÆ® ½ÃÀÛ

    if application("today") <> date then

    '
    application.Lock
    application("today") = date
    application("today_visit")=1
    application.UnLock
    else
    application.Lock
    application("today_visit")=application("today_visit") + 1
    application.UnLock
    end if

    '¿À´ÃÀÇ Ä«¿îÆ® ³¡


    End Sub

    Sub Session_OnEnd

    Application.lock
    Application("now_visit")= Application("now_visit")-1
    Application.unlock


    End Sub
    </SCRIPT>


    ¿À´Ã Ä«¿îÅÍ°¡ ÀÌ»óÇÕ´Ï´Ù. ¼­¹ö¸¦ Á׿´´Ù°¡ »ì¸®¸é
    1À̵˴ϴÙ.
    Byte * 200 Byte À̳»·Î ÀÔ·ÂÇϼ¼¿ä À̸§ : Æнº¿öµå :