Capture ip address of visitors...

Discussion in 'PHP' started by coder 525, Jul 2, 2008.

  1. #1
    I want a code to capture the ip address of visitors...
    Can anybody help...
     
    coder 525, Jul 2, 2008 IP
  2. Spawny

    Spawny Well-Known Member

    Messages:
    252
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #2
    <? echo $_SERVER['REMOTE_ADDR']; ?>
     
    Spawny, Jul 2, 2008 IP
  3. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could use a php script, or just download your RAW access logs from your hosts control panel, if it is offered
     
    diligenthost, Jul 2, 2008 IP
  4. coder 525

    coder 525 Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks !
    can u suggest the code to count the number of hits from a particular ip...
     
    coder 525, Jul 2, 2008 IP
  5. King Goilio

    King Goilio Member

    Messages:
    200
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    33
    #5
    King Goilio, Jul 3, 2008 IP