damiantaylor Posted February 21, 2010 Share Posted February 21, 2010 Hi, I have some php code to detect if a browser has the flash plugin. It works great in Fire Fox but in Internet Explorer 8(I haven't been able to test in other versions yet) it doesn't work on entry to my site, but if you hit refresh it suddenly works Here's a link to my test site so you can see what I mean: http://snow.byethost8.com/shop/ When you first go in, right click the main image and you'll see it's an image because you get the 'Save picture as' option. Now hit refresh and do the same thing.....it's now flash! Is there a better way to detect flash using php? Here's the code I'm using: <?php // Search through the HTTP_ACCEPT header for the Flash Player mime-type. $swfheader = strpos($_SERVER['HTTP_ACCEPT'],'application/x-shockwave-flash'); if($swfheader === false) { $hasFlash=true; } else { $hasFlash=false; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/192858-detecting-flash-ie8/ 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.