Ok so I have a situation and it is confusing me as this works fine in Firefox.
$path = '/home/ss/plsc/';
scandir( $path );
rsort ( $f );
$file = '/home/ss/plsc/'.$f;
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=\"".basename($file)."\"");
header('Content-Length: ' . filesize($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...