Page 1 of 1

Identify individual users that are using mobile phones

Posted: Fri Nov 17, 2006 3:03 pm
by d3chapma
I have a php page where users on mobile phones can fill out a survey. I'm looking for a way that I can get information from the header that will allow me to basically authenticate users so that I know that they are using a mobile phone. The key is that I only want the surveys of users who are using mobile phones to access the page. All other submissions will simply be discarded.

Any thoughts on this?

Posted: Fri Nov 17, 2006 3:22 pm
by feyd
Many of the request headers, we normally don't have access to. So if these clients send an odd header, PHP may not see it.

Apache supports getallheaders().

Sometimes, they can be identified (although not definitively) through their browser agent string.

get_browser() may be of interest.