when i download the adobe acrobat reader file using
header('Content-type: application/pdf');
it is working good for pdf
but in case of exe it's not working good and give unknown file type when i use the header
header('Content-type: application/exe');
download the file
Moderator: General Moderators
try application/octet-stream
or one of the others from here:
http://www.filext.com/detaillist.php?ex ... rch=Search
or one of the others from here:
http://www.filext.com/detaillist.php?ex ... rch=Search
Are you trying to force a download - so that no matter what the file is the user downloads it? If so, do a search for 'force download' and you'll find what you need.
If you're just concerned with an exe file, the mime type you want is: application/octet-stream
If you're just concerned with an exe file, the mime type you want is: application/octet-stream
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.