Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("Cache-control: private");
- header('Content-Type: application/octet-stream');
- header('Content-Length: '.filesize($vFilePath));
- header('Content-Description: File Transfer');
- header('Content-Transfer-Encoding: binary');
- header('Content-Disposition: attachment; filename="'.$downloadName.'"');
- readfile($vFilePath);
- ?>
Add Comment
Please, Sign In to add comment