Now: Tutorial for Web and Software Design > PHP > QA > PHP Content
> PHPFAQ - How do I get the visitors browser information? [Bookmark it]
PHPFAQ - How do I get the visitors browser information?


Question :

How do I get the visitors browser information?

Answer :You have more than one option when you want to get the information, they depends on how much information you want to get bout the browser. We will mention two ways here.

The first way to do it is simply by using the variable $HTTP_USER_AGENT, which holds information about browser version, name etc. If you want a class that can parse the information out of the variable look at the PHP Client Sniffer

The second one is to use php's get_browser function, though it has it drawbacks, because you need a browsercap.ini which has to be present at your isp, it gives much more information than other ways. To read more about get_browser, look here.



[Bookmark][Print] [Close][To Top]
  • Prev Article-PHP:

  • Next Article-PHP:
  • Related Materias
    PHPFAQ - How google is you
    PHPFAQ - Are there any web
    PHPFAQ - How can I accept 
    PHPFAQ - How can I finance
    PHPFAQ - Where can I get P
    PHPFAQ - Where can I host 
    PHPFAQ - Where can I find 
    PHPFAQ - I am trying to cr
    PHPFAQ - Is there a librar
    PHPFAQ - How can I manage 
    Topics
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Graphic Design Tutorial
     

    Coreldraw Tutorial

      Illustrator Tutorial
      3D Graphics Articles
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial&Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial&Articles
     

    XML Style Tutorial

      AJAX Tutorial
      XML Mobile
    Flash Tutorial&Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial&Articles
     

    Linux Tutorial

      Symbian Tutorial
      MacOS Tutorial