Hi all
I have a download script, it used to work fine and still working fine for netscape and opera browsers but not for IE.
when i open it with IE it first displays a download box and starts downloading .php file not the .zip file and then it displays error message that internet explorer can't download file.
here is the code (igonre any syntax probs as it is not there in original code)
filename and paths are all OK.
Header("Content-type: application/octet-stream");
Header("Content-Disposition: attachment; filename=somefile.zip");
Header("Content-length: ".filesize("/var/www/html/somefile.zip"));
readfile("/var/www/html/somefile.zip");
I am using php 4.2.2 on redhat linux 9
and opening it using IE 5.5+
Thanks in advance.