It's very strange that the links, generated by my download code, can not be "open" in IE but OK for "save as"!
If I select "open", after clicked the link in IE, everything seems OK (filesize, progress bar etc.) but the file is always blank, no matter ZIP file or text file, only inline pictures are ok.
Please help!
My code:
ob_end_clean();
header("Last-Modified: " . gmdate("D, d M Y H:i:s",$openfilerecord['lastmodified']) . "GMT");
header("Content-type: $type");
header("Content-Disposition: " . ($inline?'inline;':'')
. "filename=\"$filename\"; size=$filelength");
header("Content-Length: " . $filelength );//attachment;inline;
readfile($fn);
Please kindly check my site to see the difference of "open" and "save as": http://citymap.dns2go.com/