You can set up TeraWurfl (if its built in PHP) and check very easily.
That's what I do. Also useful for checking for other phones as well.
Such as:
require_once('./wall_prepend.php');
if($wall->wurfl->capabilities['product_info']['model_name'] ==
"iPhone"){
//DO SOMETHING
}
Kind of overkill I guess. You can also just read the user-agent and do
something based on that.
$_SERVER['HTTP_USER_AGENT']
Iphones user agent looks like this: (Or similar)
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+
(KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
On Dec 3, 7:56 pm, Michael Latta <[EMAIL PROTECTED]> wrote:
> On the server you can always check for an iPhone and send an image tag.
>
> Michael
>
> On Dec 3, 2007, at 4:26 PM, GordonD <[EMAIL PROTECTED]> wrote:
>
> > I've been wrestling with this for a while, and haven't solved it, so I
> > have come here to ask.
> > On the front page of my site (http://www.gordondiggs.com), I have a
> > flash animation. What I am trying to do is replace that with a static
> > image if someone visits the site from an iPhone, so that there is
> > something more on the page than the flash, which does not show. Any
> > ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---