HTML itSelf html href my php file vpn_dz_pushino pbk vpn_dz_pushino pb

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
HTML itSelf:
<html>
<a href="my.php?file=vpn_dz_pushino.pbk">vpn_dz_pushino.pbk</a>
</html>
PHP Script:
<?php
if(!empty($_GET['file'])){
$filename = basename($_GET['file']);
header('Content-Disposition: attachment; filename="'.$filename.'"');
header('Content-Type: application/x-force-download; name="'.$filename.'"');
readfile($filename);
}
?>