• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

if a mobile browser

how to do if statement to see if the browser is a mobile browser

or does code have to name all the browsers ever created
0
rgb192
Asked:
rgb192
2 Solutions
 
Loganathan NatarajanLAMP DeveloperCommented:
There is a open source scripts here . did you see this link? free link
0
 
Ray PaseurCommented:
You can look at HTTP_USER_AGENT to find the browser name, and this function will be helpful to you.
http://php.net/manual/en/function.get-browser.php

See also this page; it requires some reading.
http://browsers.garykeith.com/downloads.asp

A good example of this in action is available here:
http://browsers.garykeith.com/tools/your-browser.asp
0
 
rgb192Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now