Ok so I have a situation and it is confusing me as this works fine in Firefox.
PHP code:
<?
$path = '/home/ss/plsc/';
$f = scandir
( $path );
rsort ( $f );
$file = '/home/ss/plsc/'.$f[0];
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Type: application/zip");
header("Content-Disposition: attachment; filename=\"".basename($file)."\"");
header("Content-Transfer-Encoding: binary");
header('Content-Length: ' . filesize($file));
readfile($file);
?>
I have the above code. This simply grabs the last PLSC built on the server for download. There are no problems at all in Firefox. However in IE you end up with a PLSC that inside has the PLSC again without an extension... I also added the mime type using .htaccess
I am at a loss...