Re: [PHP] PHP and IE5.5 download problem

2001-04-11 Thread trogers

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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP and IE5.5 download problem

2001-04-11 Thread Vikram Vaswani

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]