Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.49 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. header(‘Expires: 0′);
  2. header(‘Last-Modified: ‘ . gmdate (‘D, d M Y H:i:s’, filemtime ($filepath)) . ‘ GMT’);
  3. header(‘Pragma: public’);
  4. header(‘Cache-Control: must-revalidate, post-check=0, pre-check=0′);
  5. header(‘Accept-Ranges: bytes’);
  6. header(‘Content-Length: ‘ . @filesize($filepath));
  7. header(‘Content-Type: Application/octet-stream’);
  8. header(‘Content-Disposition: attachment; filename=”‘ . $filename. ‘”‘);
  9. header(‘Connection: close’);