Jump to content

Flash detection and redirection to HTML


tuputamadre

Recommended Posts

Well... I was looking for the the solution on the internet and I could not find anything... but I think it is so easy that nobody has posted before...

 

so, I am looking for a piece of code in PHP that could determine if the user has or not flash (as flash embedded code usually does), but instead of showing the message of Adobe, I would like that after detecting the user has no flash, redirects to an alternative html page... is it possible??

 

Thanks

Link to comment
Share on other sites

Well... I was looking for the the solution on the internet and I could not find anything... but I think it is so easy that nobody has posted before...

 

so, I am looking for a piece of code in PHP that could determine if the user has or not flash (as flash embedded code usually does), but instead of showing the message of Adobe, I would like that after detecting the user has no flash, redirects to an alternative html page... is it possible??

 

Thanks

 

PHP is a serverside language, and , in this case it may be a much better solution to use Javascript as it can detect if there is flash or not. I'd recommend using SwfObject, as it can provide you a simple solution to detect and display the swf file, else display something else.

Link to comment
Share on other sites

Yeah... I thought about it, but it may also happen that the user doesn't have javascript activated. I do know that the possibility of finding a user who cannot display flash and javascript at the same time is really low, but that's why I thought of PHP as a solution...

 

Thanks, by the way ;)

Link to comment
Share on other sites

Yeah... I thought about it, but it may also happen that the user doesn't have javascript activated. I do know that the possibility of finding a user who cannot display flash and javascript at the same time is really low, but that's why I thought of PHP as a solution...

 

Thanks, by the way ;)

 

Yeah, there's just not much PHP can grab (from UA or servervars) that hints that the client has JS or not. It's an unfortunate thing, but heck even cellphones have that support, so you can safely say only people with No-Script would not be able to view your page, but then again, if they knew what no-script was they'd disable it for a video/flash/js page.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.