// Initialize WURFL require_once('./wurfl-php-1.r1/WURFL/WURFLManagerProvider.php'); $wurflConfigFile = "/home/webadmin/learnto.mobi/html/books/bmwd/04/wurfl/wurfl-config.xml"; $wurflManager = WURFL_WURFLManagerProvider::getWURFLManager($wurflConfigFile); // Get the device making the HTTP request $device = $wurflManager->getDeviceForHttpRequest($_SERVER); // Does the device have a touchscreen? $pointingMethod = $device->getCapability('pointing_method'); $isTouchscreen = ($pointingMethod != null) && (stripos($pointingMethod, "touchscreen") !== FALSE); ?> '; ?>