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? Quote Link to comment Share on other sites More sharing options...
BenInBlack Posted December 8, 2007 Share Posted December 8, 2007 have you tried "Content-type: application/download" Quote Link to comment Share on other sites More sharing options...
OOP Posted December 8, 2007 Author Share Posted December 8, 2007 yes but still not working Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.