Automatické stáhnutí souboru po otevření okna. Náhled máte zde
Kód
<?$file="banneranim.gif"; //do premennej file priradime nazov suboru
chdir("../images"); //prejdeme do adresara, kde sa subor nachadza
header("Content-Description: File Transfer");
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=\"$file\"");
readfile ($file); //zacneme stahovat subor
?>




