Hey guys, I'm Steve Kamerman, the author of Tera-WURFL. You should let Tera-WURFL figure out which user agent to use by not passing anything to the getDeviceCapabilitiesFromAgent() function. Here's the code to redirect users to a mobile site (replace http://yourwebsite.mobi/ with your mobile site):
PHP Code:
<?php
require_once('./TeraWurfl.php');
$wurflObj = new TeraWurfl();
$wurflObj->getDeviceCapabilitiesFromAgent();
// see if this client is on a wireless device
if($wurflObj->getDeviceCapability("is_wireless_device")){
header("Location: http://yourwebsite.mobi/");
}
?>