Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005

    Arrow Unanswered: How to email IP and browser type on page load

    Hi all i am kind of new to php. I wonder how i can email user ip address and browser type on page load. What i mean is once a page loaded on visitor browser it sends me the administrator of a site an email with ip address of visitor and browser type . I be happy if an expert help me achiving this task.Thanks

  2. #2
    Join Date
    Apr 2005
    Baltimore, MD
    I've never done this before, but a good first step would be to check out the mail functions and get everything on your system set up correctly to send emails.

    After that it should be as easy as plugging in a few strings. I believe $_SERVER['REMOTE_ADDR'] gets the ip address and $_SERVER['HTTP_USER_AGENT'] or get_browser() will return the client info. There's tons of classes already created out there if you google for them.

    (more info on server variables)

Posting Permissions

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