How to find whether someone is browsing from mobile or computer?

by 6 replies
7
Hello people

I would like to know that is it possible that i can find whether site is browsed by mobile device or by computer using php?
#programming #browsing #computer #find #mobile
  • Hi!

    You can see that stats in Google Analytics.
    • [1] reply
    • I want to redirect accordingly so dont want to see stats i need php way to do it.
  • Take a look at this website: Detect Mobile Browsers - Open source mobile phone detection
    You'll find code for many popular languages there. Simply use sample code and edit redirection URL to your website.
  • You can detect user agent via script whatever you prefer php, asp, jsp even javascript would do. Just check the user agent and you can see if thats a mobile device or not as in mobile device it would would mention clearly like "Mobile" in the user agent detail.

    Thanks
    • [1] reply
    • I know of a few different trackers that have the ability to redirect acordingly.
      imobitrax
      bevomedia
      mobaff

      php redirect
      mobiledetect.net
      detectmobilebrowsers.com

      another good post here
      http://www.warriorforum.com/mobile-m...ml#post8179598

      You could awalys try using dudamobile codes
      support.dudamobile.com/entries/20223798-Alternate-and-other-automatic-redirection-scripts
      • [1] reply

Next Topics on Trending Feed