<? $file="/path/to/file.ext"; Header ("Content-Type: application/octet-stream"); Header ("Content-Length: ".filesize($file)); Header( "Content-Disposition: attachment; filename=".$file.""); readfile($file); ?>