PHP script to show IP, Location, OS name/version/platform, Browser name/version

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • GrumPlayer

    PHP script to show IP, Location, OS name/version/platform, Browser name/version

    Does anyone have a script for this?
    I want to use it to put these things into a logfile or db.

    Thanks

  • Benjamin Esham

    #2
    Re: PHP script to show IP, Location, OS name/version/platform,Browse r name/version

    GrumPlayer wrote:
    Does anyone have a script for this? I want to use it to put these things
    into a logfile or db.
    Take a look at



    $_SERVER won't give you all of this information, but it will probably give
    you enough to derive the rest.

    HTH,
    --
    Benjamin D. Esham
    bdesham@gmail.c om | AIM: bdesham128 | Jabber: same as e-mail
    How to Ask Questions the Smart Way, by Eric S. Raymond:

    Comment

    • Peter Boosten

      #3
      Re: PHP script to show IP, Location, OS name/version/platform, Browser name/version

      GrumPlayer <bekkema.pj@gma il.comwrote:
      Does anyone have a script for this?
      I want to use it to put these things into a logfile or db.
      >
      Thanks
      >


      All the things you want, in PHP, and puts everything in a db

      Peter

      --


      Mail: peter at boosten dot org

      Comment

      • NC

        #4
        Re: PHP script to show IP, Location, OS name/version/platform, Browser name/version

        GrumPlayer wrote:
        >
        Does anyone have a script for this?
        User's IP address is avaialble as $_SERVER['REMOTE_ADDR']. Location
        has to be deduced based on the IP address (Google for GeoIP), and
        deduction will not be perfect, since you will be shown the location of
        IP block owner (for example, it is likely that all AOL users will be
        identified as located in Virginia). OS name/version/platform and
        browser name/version can be parsed out of $_SERVER['HTTP_USER_AGEN T'].

        Note, however, that browsers are not required to submit any of this
        information in an HTTP request. Additionally, some browsers can be
        configured to submit custom information rather than true one.

        Cheers,
        NC

        Comment

        • Chung Leong

          #5
          Re: PHP script to show IP, Location, OS name/version/platform, Browser name/version


          GrumPlayer wrote:
          Does anyone have a script for this?
          I want to use it to put these things into a logfile or db.
          >
          Thanks
          See http://fi.php.net/get-browser also.

          Comment

          Working...