note 64153 added to function.header
| From: | shawnfess at comcast dot net | Date: | Sat, 08 Apr 2006 21:53:16 +0000 |
| Subject: | note 64153 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107570@lists.php.net to get a copy of this message | ||
Internet Explorer will not accept certain filenames in the filename attribute of the
Content-Disposition header. It will Sit 'N Spin until it finally times out. The following will
not work when $fn contains "Web", "Browser" or "WebBrowser" (or any
case variation thereof):
$fn = $row["sFilename"];
$fs = $row["lFileSize"];
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$fn");
header("Content-length: $fs");
echo $row["blobData"];
Guess I should have looked here first. Yes, it does seem we're all searching for workarounds
for IE.
-SHAWN-
----
Server IP: 216.194.113.175
Probable Submitter: 24.14.81.37
----
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/64153
Del: integrated -- http://master.php.net/note/delete/64153/integrated
Del: useless -- http://master.php.net/note/delete/64153/useless
Del: bad code -- http://master.php.net/note/delete/64153/bad+code
Del: spam -- http://master.php.net/note/delete/64153/spam
Del: non-english -- http://master.php.net/note/delete/64153/non-english
Del: in docs -- http://master.php.net/note/delete/64153/in+docs
Del: other reasons-- http://master.php.net/note/delete/64153
Reject -- http://master.php.net/note/reject/64153
Search -- http://master.php.net/manage/user-notes.php