Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using php Function

    Hello guys,

    I wanna ask, how to know If the visitor to my website using a mobile phone or PC? using php function

    Any answers as fast as possible
    Thnx

  • #2
    Regular Coder Stooshie's Avatar
    Join Date
    Mar 2008
    Location
    Dundee, Scotland
    Posts
    378
    Thanks
    9
    Thanked 39 Times in 39 Posts
    google $_SERVER["HTTP_USER_AGENT"]
    Regards, Stooshie
    O

  • #3
    Regular Coder
    Join Date
    Apr 2007
    Location
    Griffith. Australia
    Posts
    138
    Thanks
    4
    Thanked 4 Times in 4 Posts
    All that value will do is provide you with a non-friendly string containing a shed load of information about the browser and physical machine OS, Google PHP user agent identity classes. These classes will get the full string and then break the string apart into easy to understand components which will tell you the browser type, version, OS, etc.


  •  

    Posting Permissions

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