โค๊ด:
header("Expires: 0");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Content-Type: ".get_mime_by_extension(basename(trim($path))));
header('Content-length: '.$getFilesize);
header('Content-disposition: attachment; filename='.basename($path));
readfile("http://$username:$password@".trim($path));