note 10405 rejected and deleted from header by zak

From: Date: Wed, 03 Jan 2001 01:25:35 +0000
Subject: note 10405 rejected and deleted from header by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-9293@lists.php.net to get a copy of this message
I am using the following code: <?php if (isset($source) && isset($filename)) { if (filetype($source) == "text/plain") header("Content-Type: text/plain"); else header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=$filename"); header("Content-Length: ".filesize($source)); readfile($source); exit(); } ?> This does not work properly in IE 5.5. I don't have another version of IE to test this with. I get a save dialog box for the file "index.html" every time. This is the same for all file types. Is this just a bug in IE 5.5 or is this the same in other versions of IE? If anyone knows the workaround I would love to see it.

« previous php.notes (#9293) next »