$value){ $$key=tisztito($value); } foreach($_POST as $key => $value){ $$key=tisztito($value); } $meret = filesize("$mappa/$fnev"); header("Content-Type: application/force-download"); header("Content-Disposition: attachment; filename=" . $fnev); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".$meret); readfile("$mappa/$fnev"); ?>