subalan wrote:Hi All,
I have a html page which had a flash file. In the client machine, if Flash player is not installed or not enabled then i have to give an alternate gif image. How to detect, whether Flash player installed in client machine or not. Using PHP or Javascript. Give me some example.
Thanks & Regards,
Bala
Namaste!
Piece of cake.. maybe it's not the best way.. but works.. try this out.. 🙂
function FlashAvailable()
{
$flashX = $_SERVER['HTTP_ACCEPT'];
if (strpos(strtoupper($flashX), 'FLASH') !== false)
{
$flash = 1;
return $flash;
}
}
$foobar = FlashAvailable();
if($foobar==1)
{
echo 'Play Flash';
}else{
echo 'Play GIF';
}