note 34059 added to function.header
| From: | lkkspp at zinwell dot com dot tw | Date: | Tue, 15 Jul 2003 06:13:13 +0000 |
| Subject: | note 34059 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52121@lists.php.net to get a copy of this message | ||
<?
$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 ..."
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34059
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34059&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34059&report=yes