is it possible to detect if flash is installed using PHP. My aim is, that if it is installed it will play a flv file, and if not it will use another player eg; quicktime? If it is possible how do I go about doing it?
Thanks
Tom
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s a better approach to this –
Use SWFObject to embed your .swf file. This is pretty much industry standard these days, nobody who knows what they’re doing uses the pre-built Flash embed code.
The reason SWFObject will help you is that you basically tell it to go find a div on your site and replace it with a div containing embedded Flash. If the user doesn’t have Flash installed, no problem – it just continues to display the original div.
The idea, then, is that you put your alt-content into the div that’s going to be replaced by your .swf. This works very nicely, and should be perfect for what you need.