quote:
Originally posted by alexp2_ad
Yes, Internet Explorer has this problem. It thinks it's a zip so it downloads it as a zip. I get round it by putting the script in a separate folder on the server from the html and the rest and then putting in a file called .htaccess saying:
code:
ForceType application/x-plsc
That should work.
Adding the type elsewhere didn't work right for me, so I had to use ForceType and a separate folder.
Or you can create a php script :
code:
<?php
// download.php?script=xxx (no .plsc)
$script = $_GET['script'];
if (strpos($script,".") > -1 || strpos($script,"/") > -1 || strpos($script,"\\") > -1 || strpos($script,'"') > -1 || !is_file("./$script.plsc"))
die("File not found");
header("Content-Type: application/x-plsc");
header('Content-Disposition: attachment; filename="' . $script . '.plsc"');
readfile("./$script.plsc");
?>