Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($_POST['downloadfile']) {
- $downloadfile = $_POST['downloadfile'];
- header("Cache-Control: public");
- header("Content-Description: File Transfer");
- header("Content-Disposition: attachment; filename= $downloadfile");
- header("Content-Transfer-Encoding: binary");
- @readfile($downloadfile);
- exit;
- }
- header("Content-Disposition: attachment; filename= basename($downloadfile"));
Add Comment
Please, Sign In to add comment