Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header('Content-type: text/plain');
- header('Content-disposition: attachment; filename="test.txt"');
- <?
- header ("Content-Type: application/download");
- header ("Content-Disposition: attachment; filename=$yourfile");
- header("Content-Length: " . filesize("$yourfile"));
- $fp = fopen("$yourfile", "r");
- fpassthru($fp);
- ?>
Add Comment
Please, Sign In to add comment