Jump to content

Issues in implementing a download feature


OOP

Recommended Posts

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?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.