' . $name . '? '; if (is_bool($value)) { $output .= formatBoolean($value); } else if (is_array($value)) { $output .= formatArray($value); } else { $output .= $value; } $output .= ''; return $output; } // Define constants used in the page header and footer define("TITLE", "WURFL Device Info"); // Include our page header require ("../../../includes/header.php"); // 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); // Use the WURFL API to display mobile device characteristics ?>

WURFL Device Characteristics

Click here to try the WURFL switcher.