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
https://forums.phpfreaks.com/topic/187195-flash-detection-and-redirection-to-html/
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.

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

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.