note 79029 modified in function.header by danbrown
| From: | danbrown@php.net | Date: | Wed, 30 Jul 2008 18:18:12 +0000 |
| Subject: | note 79029 modified in function.header by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142942@lists.php.net to get a copy of this message | ||
If you want to serve files to be opend in a separate application (also PDF files displayed in the
Reader and not in the IE Plugin) with the dialog open/save as/cancel :
Don't use the
Content-disposition: attachment
and
Cache-control: no-cache
header at same time.
Normaly the browser stores the file in a temporary directory and starts the default application for
the mime-type with the path of the file as parameter.
Problem : IE6 doesn't store because of no-cache. So the application (in my case AcrobatReader)
displays the file can't be found.
Greets
Mik
--was--
If you want to serve files to be opend in a separate application (also PDF files displayed in the
Reader and not in the IE Plugin) with the dialog open/save as/cancel :
Don't use the
Content-disposition: attachmet
and
Cache-control: no-cache
header at same time.
Normaly the browser stores the file in a temporary directory and starts the default application for
the mime-type with the path of the file as parameter.
Problem : IE6 doesn't store because of no-cache. So the application (in my case AcrobatReader)
displays the file can't be found.
Greets
Mik
http://php.net/manual/en/function.header.php