Free Tools: Pastebin.xyz Disposable Email SEO Tools Private Pastebin
355 Hits total
c Language
23.695 Author
close

Untitled

This is a quick overview of some features

  1. <?php
  2. $file = "filename.ext";
  3.  
  4. // Quick check to verify that the file exists
  5. if( !file_exists($file) ) die("File not found");
  6.  
  7. // Force the download
  8. header("Content-Disposition: attachment; filename="" . basename($file) . """);
  9. header("Content-Length: " . filesize($file));
  10. header("Content-Type: application/octet-stream;");
  11. readfile($file);
  12. ?>
Parsed in 0.002 seconds