Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 14th, 2013  |  syntax: None  |  size: 1.14 KB  |  views: 16  |  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("Content-type:application/pdf");
  2. header('Content-Disposition: attachment;filename="http://www.yourdomain.com/ebookfordownloads/$_GET['$filename']"');
  3.  
  4. readfile("/your/absolute/server/path/html/ebookfordownloads/$_GET['$filename']");
  5.  
  6.  
  7. header("Content-type:application/pdf");
  8. header('Content-Disposition: attachment; filename="http://www.yourdomain.com/ebookfordownloads/$_GET['$filename']"');
  9. readfile("/your/absolute/server/path/html/ebookfordownloads/$_GET['$filename']");
  10.        
  11. header("Content-type:application/pdf");
  12. header('Content-Disposition: attachment;filename="http://www.yourdomain.com/ebookfordownloads/' . $_GET['filename'] . '"');
  13.  
  14.  
  15. readfile("/your/absolute/server/path/html/ebookfordownloads/" . $_GET['filename']);
  16.  
  17.  
  18. header("Content-type:application/pdf");
  19. header('Content-Disposition: attachment; filename="http://www.yourdomain.com/ebookfordownloads/' . $_GET['filename'] . '"');
  20. readfile("/your/absolute/server/path/html/ebookfordownloads/" . $_GET['filename'] );
  21.        
  22. readfile("/your/absolute/server/path/html/ebookfordownloads/{$_GET['$filename']}");
  23.        
  24. readfile("/your/absolute/server/path/html/ebookfordownloads/".$_GET['$filename']);
clone this paste RAW Paste Data