Hi all,
Currently i'm create a function to produce excel snapshots. When user click on the link, system will browse Page A. Meanwhile, page A will open a download dialog box and close itself automatically after user start download the file.
In practical, page A doesn't close after user start to download the file. Is there any way to solve this problem?
[HELP] File Download Problem
Moderator: General Moderators
the problem was solve by using function of header.
this code was copied from other people. but i wonder whether META function can provide the same effect?
Code: Select all
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=$filename" );
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
header("Pragma: public");