Home > Mobile >

Detect Mobile Browsers and Agents w/ PHP (3)


07-22-2011 12:50 AM #1 convert2steve (Member)
Detect Mobile Browsers and Agents w/ PHP

Use this script here to detect mobile browsers.

http://detectmobilebrowsers.mobi/
http://www.nathanrice.net/blog/brows...lass-function/


07-22-2011 01:09 AM #2 mattias (Member)

Nice share


07-22-2011 02:48 AM #3 eliquid (Member)

thanks for sharing, but i hate paying for code like on that one site. You just never know if the person actually coded it right.

you can check this a few ways in PHP:

1. UserAgent ( can be faked )
2. Screen Resolution ( getting harder now with iPad and tablets that can do 800x600+ )
3. Javascript check ( some mobile cant do JS or Flash, but getting harder )
4. IP info ( if from a cellular hostname, but some of these hostnames are from companies that do mobile and broadband like verizon )

all in all, its getting harder but is still doable


Home > Mobile >