Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header('Content-Type: application/force-download');
- header('Content-Disposition: attachment; filename="' . basename($filepath) . '"');
- header('Content-Length: ' . filesize($filepath));
- header('X-Sendfile: ' . $filepath);
Add Comment
Please, Sign In to add comment