Copy this code and paste it in your HTML
header('Content-Description: File Transfer'); header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"".filename
."\"\n"); header('Content-Transfer-Encoding: binary'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); }
// if readfile is blocked, try:
header('Content-Description: File Transfer'); header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"".filename
."\"\n"); header('Content-Transfer-Encoding: binary'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); $fp=fopen("path/".$filename, "r"); }