daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Nov 30th, 2012 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         header('Content-Type: application/x-gtar');
  2.         header('Content-Disposition: attachment; filename="'.basename($file).'"');
  3.         //header('Connection: Keep-Alive');
  4.         header('Content-Transfer-Encoding: binary');
  5.         header('Expires: 0');
  6.         header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
  7.         header('Pragma: public');
  8.         header('Content-Length: '.filesize($file));
  9.         //readfile($file);
  10.         set_time_limit(0);
  11.         $f=fopen($file,"rb");
  12.         $data='';
  13.         while(!feof($f))
  14.         {
  15.                 print fread($f,1024);
  16.                 //flush();
  17.         }
  18.         fclose($f);
RAW Paste Data
Top