OOP Posted December 8, 2007 Share Posted December 8, 2007 Hi, I am writing a small script and one of the features that I want to implement is the download feature. Now, I have already wrote the logic but the problem is that it is working in Firefox but when I use the internet explorer it just dump the content of the file in the explorer window and I am not getting the download screen header('Content-type: application/octet-stream'); header('Content-Disposition: attachment; filename="' . $clean['file_name'] . '"'); readfile($clean['file_path']); Am I doing somthing wrong...or maybe I am missing something... any advise will be highly appreciated? Link to comment https://forums.phpfreaks.com/topic/80744-issues-in-implementing-a-download-feature/ Share on other sites More sharing options...
BenInBlack Posted December 8, 2007 Share Posted December 8, 2007 have you tried "Content-type: application/download" Link to comment https://forums.phpfreaks.com/topic/80744-issues-in-implementing-a-download-feature/#findComment-409594 Share on other sites More sharing options...
OOP Posted December 8, 2007 Author Share Posted December 8, 2007 yes but still not working Link to comment https://forums.phpfreaks.com/topic/80744-issues-in-implementing-a-download-feature/#findComment-409633 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.