Hi,
Can anyone tell me that how we can check that flash player is installed or not in php.I have searched a lot but could not find anything.Please Help.
Thanks in advance

Recommended Answers

All 4 Replies

It is possible with JS, not sure for PHP.
What is your exact requirement?
If flash is not installed then what you want to do?

My exact requirement is that first of all i will check if the user is on Internet Explorer 6.If the user is on IE 6 then the script will run for checking whether the user has latest flash player installed on IE 6 or not if not a link will appear there to download the latest version of flash player.
Thanks for replying

This is the code i get when i instert SWF in DreamWeaver CS5.5:

Header Code:

<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>

Body Code:

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="50" height="50">
  <param name="movie" value="YourSwfFile.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="opaque" />
  <param name="swfversion" value="6.0.65.0" />
  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
  <param name="expressinstall" value="Scripts/expressInstall.swf" />
  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
  <!--[if !IE]>-->
  <object type="application/x-shockwave-flash" data="YourSwfFile.swf" width="50" height="50">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
  </object>
  <!--<![endif]-->
</object>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>

expressInstall.swf & swfobject_modified.js Attached.

Member Avatar for diafol

I think php can sniff a browser and an OS, but I don't think it can sniff whether a browser has a flash plug-in. As mentioned, you;ll probably need js for that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.