redirect after headers sent
Posted: Fri Jun 02, 2006 9:34 am
Hello,
Can I do anything to redirect after spawning the download dialog?
I have a file that uses these headers and offers a download:
If this was a pop-up window, that would be fine, but i don't want to use a pop-up, how can I go anywhere after I do this?
Thanks,
dstefani
Can I do anything to redirect after spawning the download dialog?
I have a file that uses these headers and offers a download:
Code: Select all
function stream_rtf_file($file_name, $file_text) {
include "includes/rtf_class.php";
// headers
Header("Content-type: application/octet-stream");
Header("Content-Disposition: attachment; filename=$file_name");
// do it
$rtf = new RTF("includes/rtf_config.inc");
$rtf->parce_HTML($file_text);
$fin = $rtf->get_rtf();
echo $fin;
}Thanks,
dstefani