Re: PHP and IE5.5 download problem
| From: | trogers | Date: | Thu, 12 Apr 2001 07:04:37 +0000 |
| Subject: | Re: PHP and IE5.5 download problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48253@lists.php.net to get a copy of this message | ||
Hi
For some reason this works for me, can even download .html files
$headertxt = "Content-Disposition: attachment; filename=\"".$filename."\"";
header("Content-Type: application/force-download");header($headertxt);
Tom
At 12:09 AM 12/04/01 +0500, Vikram Vaswani wrote:
Hi! I have a script which sends the following headers in order to get the client to display a "file save" prompt. header ("Content-Type: application/octet-stream"); header ("Content-Disposition: attachment; filename=$filename"); readfile($filename); This works well on Netscape/lynx. However, IE 5.5 has a problem with this - I get a message saying that the "file could not be found". Looked around online, some sites say that this is an IE-specific issue with MIME-type recognition. However, I see sites like yahoo and deja allowing users to download email attachments using a similar technique, and that works fine on IE. Any ideas on what I'm doing wrong here? TIA! Vikram -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net