Results 1 to 7 of 7

Thread: ip address of visiting user

  1. #1

    Thread Starter
    Addicted Member Icheb's Avatar
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    232

    ip address of visiting user

    Hi,

    I need to make something that displays the user ip address as a result (to be included into a site) and if possible writes the ip and hostname to a file or database.

    I have totally no experience with it, so if you want to help me, please treat me as a newbie with PHP...

    And no, i'm not gonna use ASP because i want an apache server instead of micro$oft stuff

    thanks in advance
    The main VB routine in Windows XP (The don't admit it, they wrote it in VB)

    [vbcode]
    Public Sub Windows_Load()
    a = 1
    b = 2
    if not a + b = 2 then
    goto crash
    end if

    goto crash

    End Sub
    [/vbcode]

  2. #2
    scoutt
    Guest
    $ip = $REMOTE_ADDR;
    $host = $REMOTE_HOST;

    and I suggest reading the php manual if you don't know how to connect to the database.

  3. #3

    Thread Starter
    Addicted Member Icheb's Avatar
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    232
    tnx...

    I will read it (or at least the things i need to know)
    The main VB routine in Windows XP (The don't admit it, they wrote it in VB)

    [vbcode]
    Public Sub Windows_Load()
    a = 1
    b = 2
    if not a + b = 2 then
    goto crash
    end if

    goto crash

    End Sub
    [/vbcode]

  4. #4
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609

    Question

    hmmmm, i like this "Icheb" guy, refuses to use ASP, likes PHP, he has more sense than any other person on this forum !!!! i like

  5. #5

    Thread Starter
    Addicted Member Icheb's Avatar
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    232
    Originally posted by ubunreal69
    hmmmm, i like this "Icheb" guy, refuses to use ASP, likes PHP, he has more sense than any other person on this forum !!!! i like
    LOL !!

    thanx...
    The main VB routine in Windows XP (The don't admit it, they wrote it in VB)

    [vbcode]
    Public Sub Windows_Load()
    a = 1
    b = 2
    if not a + b = 2 then
    goto crash
    end if

    goto crash

    End Sub
    [/vbcode]

  6. #6
    Addicted Member
    Join Date
    Nov 2001
    Location
    Martin County , FL
    Posts
    153

    PHP manual

    I don't have one of thoes. Got any tutorials? PHP.com doesnt explain much. I too would like to write IP adresses to a (text) file.

  7. #7
    scoutt
    Guest
    http://www.php.net/manual/en/

    and then you can get the manual as it is free.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width