<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Handset Detection</title>
	<atom:link href="http://www.handsetdetection.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.handsetdetection.com/blog</link>
	<description>The Mobile Web is Calling.</description>
	<pubDate>Wed, 20 Aug 2008 04:21:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Handset Detection in 2 easy steps.</title>
		<link>http://www.handsetdetection.com/blog/2008/08/handset-detection-in-2-easy-steps/</link>
		<comments>http://www.handsetdetection.com/blog/2008/08/handset-detection-in-2-easy-steps/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 04:20:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.handsetdetection.com/blog/?p=5</guid>
		<description><![CDATA[We&#8217;ve had a few support emails over the last week or so with folks writing in to say &#8216;Looks Great, how do i get it working on my site&#8217;. So I&#8217;ve put together this little &#8220;How To&#8221; that should help to get you started.
- NOTE : For this How To you&#8217;ll need PHP on your [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve had a few support emails over the last week or so with folks writing in to say &#8216;Looks Great, how do i get it working on my site&#8217;. So I&#8217;ve put together this little &#8220;<strong>How To</strong>&#8221; that should help to get you started.</p>
<p>- NOTE : For this How To you&#8217;ll need PHP on your web server.</p>
<p>1) Copy the script below into a file called redirect.php</p>
<p>2) Open that up in your fav text editor. We need to make a few changes.</p>
<p>Here&#8217;s the bits that need changing.</p>
<p>// Put Your API Key in Here<br />
define(&#8217;APIKEY&#8217;,'00000000000000000000000000000000&#8242;);</p>
<p>// Put Your NON Mobile site homepage URL in here<br />
define(&#8217;STDSITE&#8217;,'http://www.zaption.com&#8217;);</p>
<p>// Put your Mobile site URL in here<br />
define(&#8217;MSITE&#8217;,'http://m.zaption.com&#8217;);</p>
<p>- Put your APIKEY from handsetdetection into top define (copy it over all those 0&#8217;s).<br />
- Change the URL in STDSITE to your standard website.<br />
- Change the URL in MSITE to your mobile site.</p>
<p>Bingo - Its all done - now you have a page which can do the detection and<br />
redirect people to the most appropriate site for their device.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<pre>

&lt;?php

// HTTP/Request from PEAR.
include "HTTP/Request.php";

// Put Your API Key in Here
define('APIKEY','00000000000000000000000000000000');

// Put Your NON Mobile site homepage URL in here
define('STDSITE','http://www.zaption.com');

// Put your Mobile site URL in here
define('MSITE','http://www.handsetdetection.com');

// This is the handset detection server to query - No change needed here.
define('HD_SERVER','http://c1.handsetdetection.com');

function sendjson($data, $url) {
	$tmp = json_encode($data);
	$req =&#038; new HTTP_Request($url);
	$req->addHeader("Content-Type", "application/json");
	$req->setMethod(HTTP_REQUEST_METHOD_POST);
	$req->addRawPostData($tmp);
	$req->sendRequest();
	$reply = $req->getResponseBody();

	return json_decode($reply, true);
}

function doDetect() {
	$options = array('geoip', 'product_info');

	$data = array();
	$data['apikey'] = APIKEY;

	// Pick up user agent from headers passed to the server
	$data['User-Agent'] = $_SERVER['HTTP_USER_AGENT'];
	$data['ipaddress'] = $_SERVER['REMOTE_ADDR'];

	// Passing $_SERVER options in is optional.
	$data = array_merge ($data, $_SERVER);

	$result = sendjson($data, HD_SERVER."/devices/detect.json");

	return $result;
}

$ret = doDetect();
if ($ret['message'] == 'OK') {
	header('Location: '.MSITE);
} else {
	header('Location: '.STDSITE);
}

?>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.handsetdetection.com/blog/2008/08/handset-detection-in-2-easy-steps/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Outage and what we&#8217;re doing about it.</title>
		<link>http://www.handsetdetection.com/blog/2008/07/outage-and-what-were-doing-about-it/</link>
		<comments>http://www.handsetdetection.com/blog/2008/07/outage-and-what-were-doing-about-it/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 00:23:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Support]]></category>

		<guid isPermaLink="false">http://www.handsetdetection.com/blog/?p=4</guid>
		<description><![CDATA[We have just recovered from a serious 4h outage. It was a combination of factors which lead to our server running out of memory and then not recovering so well.  As a result we&#8217;re doing two things. Thing 1 is we&#8217;ve doubled the memory on our virtual server (720 to 1440) - Linode makes that [...]]]></description>
			<content:encoded><![CDATA[<p>We have just recovered from a serious 4h outage. It was a combination of factors which lead to our server running out of memory and then not recovering so well.  As a result we&#8217;re doing two things. Thing 1 is we&#8217;ve doubled the memory on our virtual server (720 to 1440) - Linode makes that oh so easy, and thing 2 is we are hastening our planned move to AWS.</p>
<p>The move to AWS should be seamless &amp; we&#8217;ll keep you posted on when its happening.</p>
<p>Cheers</p>
<p>Richard</p>
]]></content:encoded>
			<wfw:commentRss>http://www.handsetdetection.com/blog/2008/07/outage-and-what-were-doing-about-it/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New Website Goes Live</title>
		<link>http://www.handsetdetection.com/blog/2008/06/new-website-goes-live/</link>
		<comments>http://www.handsetdetection.com/blog/2008/06/new-website-goes-live/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 08:28:29 +0000</pubDate>
		<dc:creator>richard</dc:creator>
		
		<category><![CDATA[Release]]></category>

		<category><![CDATA[coming soon]]></category>

		<category><![CDATA[new stuff]]></category>

		<category><![CDATA[openid]]></category>

		<guid isPermaLink="false">http://www.handsetdetection.com/blog/?p=3</guid>
		<description><![CDATA[We're pleased to announce that the new release of Handset Detection is out the door. ! Yee Har ! Read on for the new features.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re pleased to announce that the new release of Handset Detection is out the door. ! Yee Har ! This release features, in no specific order :</p>
<ul>
<li>About 400 new devices.</li>
<li>A massive <a href="http://www.handsetdetection.com/devices/properties">Device List</a> .</li>
<li>Much improved device matching for &#8216;close&#8217; hits.</li>
<li>A sexy new website look.</li>
<li>A forum, and obligatory blog.</li>
<li>OpenID login - Its beta but do give it a try.</li>
<li>Squashed a few bugs in the doco.</li>
<li>We&#8217;ve enhanced logging so that its easier for us to help you debug <img src='http://www.handsetdetection.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> (Ok thats more for us).</li>
<li>Improved browser and OS detection for the stats.</li>
</ul>
<p>Specific API bug fixes :</p>
<ul>
<li>XML replies are now properly UTF-8 encoded.</li>
<li>GEO Location now returns ISP/Carrier information correctly.</li>
</ul>
<p>Coming Soon :</p>
<ul>
<li>Report mechanism for inaccurate devices.</li>
<li>Create new devices.</li>
<li>Much better stats ! (halleluiah).</li>
</ul>
<p>Thats it from me today.  If you have any feedback on the new release then please drop us note by email or in the forums.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.handsetdetection.com/blog/2008/06/new-website-goes-live/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
