I have a routine to download a file that downloads OK. After the download, I want to redirect the user to another page. The following code seems to stop processing after the readfile statement. Anyone have any thoughts
header("Pragma: public");
header("Expires: 0"); // set expiration time
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Length: ".filesize($downloadFile));
header("Content-Disposition: attachment; filename=".basename($downloadFile).";");
header("Content-Transfer-Encoding: binary");
readfile("$downloadFile");
header("Location: wndadmin.php");
Thanks for your input
Alan Arons
header("Pragma: public");
header("Expires: 0"); // set expiration time
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Length: ".filesize($downloadFile));
header("Content-Disposition: attachment; filename=".basename($downloadFile).";");
header("Content-Transfer-Encoding: binary");
readfile("$downloadFile");
header("Location: wndadmin.php");
Thanks for your input
Alan Arons