note 31565 added to function.header
| From: | emil dot assarsson at delete dot bolina dot hsb dot se | Date: | Sat, 26 Apr 2003 09:54:55 +0000 |
| Subject: | note 31565 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47130@lists.php.net to get a copy of this message | ||
Aboute names on PHP-generated files:
If you refer to the script with an extra path (pathinfo) like this
<a href="/genfile.php/filename.pdf">download file</a>
then the downloaded filename will be correct even on buggy IEs.
This is a fine solution if the refering page know the filename.
This works with Apache. I'm not sure if there is any problems with other servers.
And another thing... Allways use correct Content-Type AND file suffix. This eliminates a lot of
bugs. If a filetype don't have a registered mime-type, please tell this to the developers (this
should be considered as a bug today).
--
http://www.php.net/manual/en/function.header.php
http://master.php.net/manage/user-notes.php?action=edit+31565
http://master.php.net/manage/user-notes.php?action=delete+31565
http://master.php.net/manage/user-notes.php?action=reject+31565