Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • 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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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