note 27274 added to function.fpassthru
| From: | shaun at nospam dot phplabs dot com | Date: | Fri, 29 Nov 2002 22:41:45 +0000 |
| Subject: | note 27274 added to function.fpassthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40133@lists.php.net to get a copy of this message | ||
Note that if you use these two headers from a previous example:
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
before sending a file to the browser, the "Open" option on Internet Explorer's file
download dialog will not work properly. If the user clicks "Open" instead of
"Save," the target application will open an empty file, because the downloaded file was
not cached. The user will have to save the file to their hard drive in order to use it.
Make sure to leave these headers out if you'd like your visitors to be able to use IE's
"Open" option.
--
http://www.php.net/manual/en/function.fpassthru.php
http://master.php.net/manage/user-notes.php?action=edit+27274
http://master.php.net/manage/user-notes.php?action=delete+27274
http://master.php.net/manage/user-notes.php?action=reject+27274