Guest User

Untitled

a guest
May 20th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2. header('Content-Description: File Transfer');
  3. header('Content-Type: application/octet-stream');
  4. header('Content-Disposition: attachment; filename=' . $name_of_file);
  5. header('Content-Transfer-Encoding: binary');
  6. header('Expires: 0');
  7. header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
  8. header('Pragma: public');
  9. header('Content-Length: ' . $size_of_file);
  10.  
  11. echo $file_data;
  12. ?>
Add Comment
Please, Sign In to add comment