header ('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header ('Content-Type: application/octet-stream'); header ('Content-Length: ' . filesize($dir.$_GET['f'])); header ('Content-Disposition: attachment; filename="'.$_GET['f'].'"');