#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Riverside, CA
    Posts
    63
    Rep Power
    15
    I am storing information when people visit my pages and I want to store their ip address. How can I get their IP address? Can I use an environmental variable??
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    I think you need something like this:
    $ENV{'HTTP_REFERER'}

    HTH.
  4. #3
  5. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    I believe that HTTP_REFERER is the URL of the previous page.

    I believe you're looking for:
    $ENV{'REMOTE_ADDR'}

IMN logo majestic logo threadwatch logo seochat tools logo