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


    [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") = 10000


    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")


    Application.lock

    out.writeLine(Application("count"))

    out.close
    Application.unlock
    End if

    End Sub

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

    ==========================================

    [main.asp]
    <font size="-1" color="BROWN">¹æ¹®ÀÚ ¼ö
    <%
    count = application("count")


    For i= 1 to Len(Count)
    imgName=Mid(Count, i, 1)
    Response.write "<img src = 'image\"
    &imgName &".jpg' align='middle'>"
    Next

    %> ¹ø° ÀÔ´Ï´Ù.

    ==========================================
    ÀÌ·¸°Ô Àú°¡ ÀÛ¼º,Àοë¼öÁ¤ÇÏ¿´½À´Ï´Ù.
    ±×·±µ¥ Ä«¿îÆÃÀÌ Àß µÇ´Ù°¡ 10000¿¡¼­ 10385±îÁö
    °¡´Ù°¡ ´Ù½Ã 10024·Î µ¹¾Æ¿À´Â °Å¿¡¿ä..
    ¿ì¿Õ ÀÌ Ç×´çÇÔ..
    ±×·¸´Ù°í ÀÛ¼ºÇÏ°í 10385±îÁö ÁöÄѸ¸ º¸°í ÀÖ¾ú´ø °ÍÀº ¾Æ´ÏÁÒ...
    Àß ³Ñ¾î°£´Ù°í Çß¾ú´Âµ¥...
    global¿¡¼­ ¹ú·¹°¡ ¼û¾îÀÖ´Â °Í °°Àºµ¥..
    ¹ú·¹ Á» Àâ¾Æ ÁÖ¼¼¿ä....
    Byte * 200 Byte À̳»·Î ÀÔ·ÂÇϼ¼¿ä À̸§ : Æнº¿öµå :