index.php*:
Codice PHP:
switch($_GET['act']) {

    case 
show_swf:
    
$query mysql_query("SELECT * from tabellaswf where id ='dovestaswf'");
    
$row mysql_fetch_array($query);
            
// SE IL BROWSER E' INTERNET EXPLORER
        
if(ereg("MSIE ([0-9].[0-9]{1,2})"$_SERVER['HTTP_USER_AGENT'])) {

            
header('Content-Type: application/octetstream');
            
header('Content-Disposition: inline; filename=nomeswf.swf');
            
header('Expires: 0');
            
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
            
header('Pragma: public');

        } else {

            
header('Content-Type: application/octet-stream');
            
header('Content-Disposition: attachment; filename=nomeswf.swf');
            
header('Expires: 0');
            
header('Pragma: no-cache');

        }
    echo 
$row['nome_cella_con_codice_binario'];
    break;
    default:
    echo 
"codicehtmlperswf....value='index.php?act=show_swf'...";
    break;


ho usato index.php come riferimento