top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Detect and Redirect Mobile Users in PHP

0 votes
398 views

I'm curious of a simple, common, universal way to detect a mobile user so I can redirect them to a mobile directory...

What is best for this: Javascript - CSS - PHP?

I think for my purposes if I can detect screen size or mobile browser agent - that would be good enough for what I need right now.

posted Jun 12, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

To your question, there are two problems:
1) Looking for a browser signature is a needle/haystack proposition, and the haystack is enormous, and it gets bigger every time a new phone/tablet model comes out;
2) Screen size used to be a good indicator, but as I feared when people first started using screen resolution as the main indicator, the screens on mobile devices have become progressively more and more capable. Some of them are better than many desktops I've seen.

answer Jun 13, 2013 by anonymous
Similar Questions
+1 vote

Do we have any users of Php say 5.6 on a FreeBSD 10.3 system installed from ports?

If so, can you get in touch with me? I'm trying to install pear and not having much luck, getting an error about a missing peclcmd.php file and a zlib extension that make is complaining about but which is in my php install.

...