tuputamadre Posted January 5, 2010 Share Posted January 5, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/187195-flash-detection-and-redirection-to-html/ Share on other sites More sharing options...
oni-kun Posted January 5, 2010 Share Posted January 5, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/187195-flash-detection-and-redirection-to-html/#findComment-988502 Share on other sites More sharing options...
tuputamadre Posted January 5, 2010 Author Share Posted January 5, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/187195-flash-detection-and-redirection-to-html/#findComment-988598 Share on other sites More sharing options...
oni-kun Posted January 5, 2010 Share Posted January 5, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/187195-flash-detection-and-redirection-to-html/#findComment-988618 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.