Page Stuck After Force Download
Posted: Tue Nov 23, 2004 6:14 am
Hi All
I have generated an excel spreadsheet, which I force download using this code:
Yet, after clicking on the link that sends the $filename to the stipulated code.
I cannot go to any other page on the menu I have that is in the leftFrame. The current active page where I downloaded the file from is stuck.
Any suggestions?
I have generated an excel spreadsheet, which I force download using this code:
Code: Select all
<?php
header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header('Content-Length: ' . filesize($filename));
header('Content-Disposition: attachment; filename=' . basename($filename));
@readfile($filename);
?>I cannot go to any other page on the menu I have that is in the leftFrame. The current active page where I downloaded the file from is stuck.
Any suggestions?