note 34059 rejected from function.header by torben
| From: | torben@php.net | Date: | Tue, 15 Jul 2003 06:27:04 +0000 |
| Subject: | note 34059 rejected from function.header by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52124@lists.php.net to get a copy of this message | ||
Note Submitter: lkkspp@zinwell.com.tw
----
<?
$head="Content-Disposition: filename=".$filename."\n";
header("Content-type:application/vnd.ms-excel");
header($head);
readfile('/home/shih/'.$filename.".xls");
?>
AS above, I can use that to open EXcel file on my web, but
how can I go back previous page and don't display this page
is expired; because I read Excel file and want to view previous
html page but client browser show " this page expired and
please refresh ..."