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

    [global.asa]
    <script language="VBScript" Runat="Server">

    sub Application_OnStart

    Set Application("DBConn")=Server.CreateObject("ADODB.Connection")
    Application("DBConn").Open ("DSN=*****;UID=**;PWD=******")

    Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
    VisitCountFileName = "C:\visitnum\visit.txt"


    Application("VisitCountFileName") = VisitCountFileName
    Application("time") = now
    Application("count") = 0


    End sub




    Sub Application_OnEnd

    Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
    Set Out = FileObject.CreateTextFile(Application("visitCountFileName"),TRUE)

    Application.Lock
    Out.WriteLine(Application("count"))
    Application.unlock

    End sub


    Sub Session_OnStart

    ipaddr = Request.ServerVariables("REMOTE_ADDR")
    SQL = "INSERT INTO userCount(ssdat, ipaddress) VALUES(getdate(), '"&ipaddr&"')"
    Application("DBConn").execute(SQL)
    Application.lock
    Application("count") = Application("count")+1
    Application.unlock

    session.timeout = 20

    If Application("count") MOD 10 = 0 then
    Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
    Set Out = FileObject.CreateTextFile(Application("visitCountFileName"),TRUE)

    Application.lock

    out.writeLine(Application("count"))

    out.close
    Application.unlock
    End if

    End Sub

    Sub Session_OnEnd

    End Sub


    Sub Session_OnEnd
    Application.Lock
    Application("Count")=Application("Count")-1
    Application.UnLock
    End Sub
    </script>


    [main.asp]
    <div id="Layer10" style="position:absolute; width:200px; height:84px; z-index:10; left: 476px; top: 394px">
    <table border="0" width="208">
    <tr> <font size="-1" color="ffffff">ÇöÀç Ä«¿îÅÍ´Â :
    <%
    count = application("count")

    for i=1 to Len(count)
    select case Mid(count,i,1)

    case "1"
    response.write "<img src = 'C:\image\1.jpg' align='middle'>"
    case "2"
    response.write "<img src = 'C:\image\2.jpg' align='middle'>"
    case "3"
    response.write "<img src = 'C:\image\3.jpg' align='middle'>"
    case "4"
    response.write "<img src = 'C:\image\4.jpg' align='middle'>"
    case "5"
    response.write "<img src = 'C:\image\5.jpg' align='middle'>"
    case "6"
    response.write "<img src = 'C:\image\6.jpg' align='middle'>"
    case "7"
    response.write "<img src = 'C:\image\7.jpg' align='middle'>"
    case "8"
    response.write "<img src = 'C:\image\8.jpg' align='middle'>"
    case "9"
    response.write "<img src = 'C:\image\9.jpg' align='middle'>"
    case "0"
    response.write "<img src = 'C:\image\0.jpg' align='middle'>"

    end select
    next
    %>
    ÀÌ·¸°Ô Çߴµ¥ "ÇöÀç Ä«¿îÅÍ´Â : ******" * À̺κп¡
    ±×¸²ÀÌ ¶ãÁú ¾Ê³×¿ä....
    °í¼ö´Ô °¡¸£ÃÄ ÁÖ¼¼¿ä.
    global.asa¿¡¼­ À߸ø µÈ ´À³¦¸¸ µé°í ´äÀº º¸ÀÌÁú
    ¾Ê³×¿ä......
    Byte * 200 Byte À̳»·Î ÀÔ·ÂÇϼ¼¿ä À̸§ : Æнº¿öµå :