Guest User

Untitled

a guest
Jan 22nd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. ob_start();
  2. header("Content-Length: " . filesize ( $fullUrl ) );
  3. header("Content-type: application/octet-stream");
  4. header("Content-disposition: attachment; filename=".basename($fullUrl));
  5. header('Expires: 0');
  6. header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
  7. ob_clean();
  8. flush();
  9. readfile($fullUrl);
Add Comment
Please, Sign In to add comment