Handy iPod touch shortcut

tips n' tricks — admin @ April 30th, 2008

No matter where you are, or what your doing (surfing the web, using the calculator or even just in locked mode) a quick double tab of the home button brings up music controls.

shortcut.jpg

Iphone Detect with PHP

Widget & Mobile Development — admin @ April 1st, 2008

If you need to detect the iphone with PHP use the following code.

function detectiPhone($query){
$container = $_SERVER[’HTTP_USER_AGENT’];

$useragents = array (
“iPhone”,”iPod”);
$this->iphone = false;
foreach ( $useragents as $useragent ) {
if (eregi($useragent,$container)){
$this->iphone = true;
}
}
if($this->iphone){
echo (”This is a iphone or iphone touch - do something like redirect here”);
}else{
echo (”You are not on an iPhone or iPod touch”);
}
}

?>

(c) 2008 Pump Interactive | powered by WordPress