Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Simon Newsgroups: comp.lang.php Subject: The prefered way to handle mobile apps? Date: Thu, 28 Jul 2011 09:51:00 +0200 Lines: 22 Message-ID: <99cin5FioiU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net RY8DZM5dneSzi+PuTfKl+g8vjsT9Dsg1P6PZUbz2Bzyk07dT9I Cancel-Lock: sha1:j5EHFLaRiqhN0j2mvPNOMeuX/1s= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:2664 Hi, I would like to display my front page diferently for mobile users, (as well as a few other pages). I see on the web that there are various scripts to detect mobile apps, (from the user agent). But from experience those quickly get out of date or are simply buggy and return some false positive. So my questions are simple, (I think). Is there a sure fire way to dynamically detect mobile apps? Is using php the right tool? or is there a more standard, (html/javascript), way of handling those. I use appache, php 5.3. Thanks in advance Simon