Wednesday, January 07, 2009

Webpages on the Iphone

I found info here on how to do some basic sanitization of a website for the iphone...you can put this into your header section:
<meta name="viewport" id="iphone-viewport" content="width=480,maximum-scale=0.66667"/>
For sites that use php, I use this:
function is_phone() {
return stristr($_SERVER['HTTP_USER_AGENT'],'iPhone');
}
This works on the ipod touch too.

No comments:

Post a Comment