Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $file = "/var/www/html/test.csv";
- header("Content-type: text/plain; charset=UTF-8");
- header('Content-Length: '.filesize($file));
- header('Content-Disposition: attachment; filename='.$file);
- readfile($file);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement