SHARE
TWEET

Untitled

a guest Feb 16th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if($_POST['downloadfile']) {
  2.     $downloadfile = $_POST['downloadfile'];
  3.     header("Cache-Control: public");
  4.     header("Content-Description: File Transfer");
  5.     header("Content-Disposition: attachment; filename= $downloadfile");
  6.     header("Content-Transfer-Encoding: binary");  
  7.  
  8.     @readfile($downloadfile);
  9.     exit;
  10. }
  11.    
  12. header("Content-Disposition: attachment; filename= basename($downloadfile"));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top