0

I need to detects client device at server end using php or javascript? which is client device and which browser is using that device?

arif
  • 1
  • 3

3 Answers3

2

Look into examining the User-Agent header.

e.dan
  • 7,275
  • 1
  • 26
  • 29
0

you could use $_SERVER with HTTP_USER_AGENT http://php.net/manual/en/tutorial.useful.php

Auto detect mobile browser (via user-agent?)

What is a user-agent? http://en.wikipedia.org/wiki/User_agent

Community
  • 1
  • 1
david
  • 4,218
  • 3
  • 23
  • 25
0

Check out Tera-WURFL (http://dbapi.scientiamobile.com/wiki/index.php/Main_Page). It's an API that detects the capabilities of mobile devices. We use it here to determine whether to forward a user to desktop or mobile version of our applications.

Mike Purcell
  • 19,847
  • 10
  • 52
  • 89