There is a PHP solution: http://www.brainhandles.com/techno-thoughts/detecting-mobile-browsers (thanks google) But mostly it looks for a "HTTP_X_WAP_PROFILE" header, and does the usual user-agent test... But the good thing is that you can use keyword search... i.e "Blackberry", "iPhone", "Android", etc... you probably need to make sure that the page you serve is compatible anyway.
http://www.thewirelessfaq.com/how_to_distinguish_a_mobile_browser_from_a_desktop_browser 2010/8/28 Vanger - irk <mar.v...@gmail.com> > Спасибо за перевод моего вопроса, но тут дело в том, что я уже видел > эту страницу, и список там далеко не полный, и тем более, список этот > постоянно пополняется, с выходом новых ОС для мобильников. > Как реализовать универсальный проверку? Создать свой словарь из кусков > возможных User Agent'ов без использования цифр версий ОС и тд и > проверять его вхождение в полученный User Agent зашедшего на сайт > пользователя? > > On 27 авг, 21:01, Рогалевич (Ковалевич) <zhirafc...@gmail.com> wrote: > > Question was: how to determine that user comes from mobile phone to show > him > > mobile version of site. May be by parsing user agent. (for examplehttp:// > en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones) > > > > 2010/8/27 Lachlan Musicman <data...@gmail.com> > > > > > That come out wrong on re reading. I didn't mean to offend if I did, > apols. > > > > -- > > Best Regards, > > Mila > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- ----------Desktop Browser--------- Christoffer Viken / CVi i=0 str="kI4dJMtXAv0m3cUiPKx8H" while i<=20: if i%3 and not i%4: print str[i], i=i+1 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.