Blame view

php/download.php 256 Bytes
cf76164e6   Ting Chan   20190709
1
2
3
4
5
6
7
8
  if(isset($_GET['file']))
  {
   // $_GET['file'] ............
   header("Content-type:application");
   header("Content-Length: " .(string)(filesize($_GET['file'])));
   header("Content-Disposition: attachment; filename=".$_GET['file']);
   readfile($_GET['file']);
  }