Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header('Content-Description: File Transfer');
- header('Content-Type: application/octet-stream');
- header('Content-Disposition: attachment; filename=' . $file_name);
- header('Expires: 0');
- header('Cache-Control: must-revalidate');
- header('Pragma: public');
- header('Content-Length: ' . filesize($file_name));
- ob_clean();
- flush();
- readfile($file);
Add Comment
Please, Sign In to add comment