How to detect all touch and non touch screen devices in PHP?
<p>Is there a possible way of adding to the script below so it will detect all touch screen phones and all non touch screen phones?</p>

<pre><code>  // Checks the users device and if a mobile device, it redirects them too the mobile version of our site
    $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
    $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android");
    $palmpre = strpos($_SERVER['HTTP_USER_AGENT'],"webOS");
    $berry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry");
    $ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod");

    if ($berry == true)
    { 
    header('Location: http://mobile.example.co/');
    }elseif($iphone || $android || $palmpre || $ipod == true){
    header('Location: http://touch.example.co/');
    }
</code></pre>
