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']);