I place this problem on the other day but didn't get much help so here goes again. H E L P !!
What is the best method to download files of any type. If tried the following PHP code and it works but PDF's do not.
[FONT=courier new]
$TheFileSize = filesize($strFullDownloadFilename);
if (strstr($HTTP_USER_AGENT, "MSIE")) {
$Attachment = "";
} else {
$Attachment = " attachment;";
}
header("Cache-control: private"); // fix for IE
header("Content-type: application/force-download");
header("Content-Disposition: $Attachment filename=\"$TheFilename\"");
header("Content-Description: $FileDescription");
header("Content-Length: $TheFileSize");
header("Content-Transfer-Encoding: binary");
set_time_limit(0);
readfile($strFullDownloadFilename);
[/FONT]
Thanks