Jump to content

[SOLVED] check if user is on mobile device or if flash is disabled?


Dragen

Recommended Posts

Hi,

I'm currently researching the use of flash in web pages and realise that many portable devices such as mobile phones or pdas can't run flash.

 

Is there a way of checking if they're on a mobile device or if flash is disabled using php?

I've looked into it and it seems like it's only possible to check if flash is disabled using javascript and even then it's highly unreliable.

Any help would be appreciated..

even just some links to some sites that's help.

 

Thanks

  • 2 weeks later...

As far as PHP goes, some clients send that flash is enabled in their headers, but some do not, so unfortunately PHP is very unreliable for Flash sensing.  JS isn't a very good alternative method either because someone with out Flash is more likely to not have JS enabled than someone with out Flash (or atleast that's what I think ;p).

 

If you're that worried about it, I suggest just not using Flash, but I personally would just take the loss of users unless it was like a bunch of people.

yeah, that's pretty much what I thought..

You'd think that with so many sites using flash now, that all browsers would send mime headers to say whether they support it or not.

I'll probably have a splash screen asking which version to view.. flash or html.

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.