<?php //echo $_GET['path']; //$path = $_GET['path']; header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.basename($_GET['path']).'"'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($_GET['path'])); flush(); readfile($_GET['path']); //header("location:" . $_SERVER['HTTP_REFERER']); die(); ?>