Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Trouble with forced download of .msi file

$
0
0
I use the following routine to force a download it appears to work with all files except .msi (microsoft installer)


header('Content-disposition: attachment; filename='.$file_dl);
header('Content-type: application/exe');
readfile('../downloads/'.$file_dl);




changing Content-type to application.msi has no effect

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>