Advertisement
Guest User

Untitled

a guest
Jan 14th, 2013
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  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']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement