Find The Remote Address

Discussion in 'PHP' started by mmadhikermi, Nov 9, 2007.

  1. #1
    I have a web server I want to log the IP of the visitor. Is it possible to trace save IP of the visitor?. Although It is save in log I want to save that in data base what will be possible solution?
     
    mmadhikermi, Nov 9, 2007 IP
  2. greatlogix

    greatlogix Active Member

    Messages:
    664
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    85
    #2
    $ip = $_SERVER['REMOTE_ADDR'];

    Now $ip has the visitor's IP.
     
    greatlogix, Nov 9, 2007 IP