Source for file example.php
Documentation is available at example.php
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Remote Tera-WURFL Remote Client Example</title>
require_once realpath(dirname(__FILE__ ). '/../../TeraWurflRemoteClient.php');
$capabilities = array("product_info","fake_capability");
// NOTE: You must use $FORMAT_XML to communicate with Tera-WURFL 2.1.1 and earlier!
echo "<h3>Response from Tera-WURFL ". $wurflObj->getAPIVersion(). "</h3>";
echo "<pre>". var_export($wurflObj->capabilities,true). "</pre>";
foreach($wurflObj->errors as $name => $error){
echo "$name: $error<br/>";
echo "<hr/>Total Time: $time";
|