note 63867 added to function.header
| From: | gnoise at gmail dot com | Date: | Sun, 02 Apr 2006 18:21:15 +0000 |
| Subject: | note 63867 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107181@lists.php.net to get a copy of this message | ||
A small note on the header('Content-Disposition: attachment;
filename="downloaded.pdf"') -usage:
I found out that the use of double-quotes (") around the filename doesn't work in Firefox,
and is not needed for the header to work, even for filenames with spaces in it.
So use this instead:
<?
header('Content-Disposition: attachment; filename=filename spaces are ok.pdf')
?>
----
Server IP: 194.109.193.119
Probable Submitter: 84.245.9.9
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/note/edit/63867
Del: integrated -- http://master.php.net/note/delete/63867/integrated
Del: useless -- http://master.php.net/note/delete/63867/useless
Del: bad code -- http://master.php.net/note/delete/63867/bad+code
Del: spam -- http://master.php.net/note/delete/63867/spam
Del: non-english -- http://master.php.net/note/delete/63867/non-english
Del: in docs -- http://master.php.net/note/delete/63867/in+docs
Del: other reasons-- http://master.php.net/note/delete/63867
Reject -- http://master.php.net/note/reject/63867
Search -- http://master.php.net/manage/user-notes.php