Asian Film Festival of Dallas, 11th Annual Website

Jul 3 2012
Asian Film Festival of Dallas, 11th Annual Website

For the third year in a row, RD2 has been given the chance to create the Asian Film Festival of Dallas’ annual website! The Asian Film Festival of Dallas website provides information to festival goers on-site and around the world. From film trailers to tickets, the Asian Film Festival of Dallas website gets you taken care of. This year, RD2 has implemented a mobile view to give an optimized experience for users on-the-go...

PHP Weather widget using Google’s weather API

May 17 2012
PHP Weather widget using Google’s weather API
UPDATE 08/28/2012

Google has abandoned their weather API and are now using wunderground.com Weather API. I will be creating a new tutorial showing the API in action very soon. Check back to the RD2 blog for updates. Please disregard the below code.

With the recent launch of the Elbowz Racing team website, we decided to add something a little bit fun, but still applicable, into the project: a self-maintaining weather widget using Google’s weather API and PHP...

Detecting the Kindle Fire with PHP

Mar 8 2012
Detecting the Kindle Fire with PHP

There are many reasons to detect the type of platform your user is viewing your website on. There are articles all over the internet about detecting iphones, ipads, android devices, etc. But when it comes to detecting the Kindle Fire, things can get a bit strange. To get the user’s platform, you will want to use the PHP method, $_SERVER['HTTP_USER_AGENT'] (see below).

<?php
$user_agent = $_SERVER['HTTP_USER_AGENT'];
echo $user_agent;
?>

This will return: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us; Silk/1.1.0-80) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16 Silk-Accelerated=true

As you can see, there are mentions of Mozilla, Apple, WebKit, Safari, etc...