PHP Classes

Checking the User Agent

Recommend this page to a friend!

      PHP Classes blog  >  10 Tips to Adapt PHP ...  >  All threads  >  Checking the User Agent  >  (Un) Subscribe thread alerts  
Subject:Checking the User Agent
Summary:Check for "Mobi"
Messages:2
Author:James Stewart
Date:2015-02-10 17:34:47
Update:2015-02-10 18:13:15
 

  1. Checking the User Agent   Reply   Report abuse  
Picture of James Stewart James Stewart - 2015-02-10 18:05:06
Yahoo says to check the HTTP_USER_AGENT field for the string "Mobi". I use this and it seems to work just fine! ... No, I do not have the URL where Yahoo! says this!!

  2. Re: Checking the User Agent   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-02-10 18:13:15 - In reply to message 2 from James Stewart
Yes, that seems to be a broad rule, but it may way for most cases.