The answer lies in this page .
nonflash.php
<?
setcookie("detection","passed",gmdate(time()) +100000);
?>
<html>
<head>
<title>Html page</title>
</head>
<body>
<center><h2>Flash support not detected</h2></center>
</body>
</html>
detection.php
<?
if ($HTTP_COOKIE_VARS["detection"] && !$first) {
setcookie("detection","",gmdate(time()) - 100000);
header("Location: detection.php?first=passed");
}
?>
<html>
<head>
<title>Detection Flash4 support</title>
<meta HTTP-EQUIV="Refresh" CONTENT="6;URL=nonflash.php">
</head>
<body>
<p>
<center><h3>Please wait...</h3></center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
ID="detection" WIDTH="2" HEIGHT="2">
<param NAME=movie VALUE="detection.swf">
<param NAME=quality VALUE=high>
<param NAME=bgcolor VALUE=#000000>
<embed src="detection.swf" quality="high" NAME="detection" swLiveConnect="true"
bgcolor="#000000" WIDTH="2" HEIGHT="2"
TYPE="application/x-shockwave-flash">
</embed>
</object>
<SCRIPT LANGUAGE="JavaScript">
<!--
if (null == document.detection) {
setTimeout("location.href='nonflash.php'", 500);
}
// -->
</SCRIPT>
</body>
</html>
Please read the page for more details.