Hi,
I believe your problem is related to the fact that you use
"unknown" in your content-type header. This forces IE to search for an
application to open the file of "unknown" type. Have you tried any other
content-types?
For more info on content-types, see the HTTP1.1 RFC:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17
Olivier Hubert
>Hi,
>
>I'm using following code to download a file. IE5 shows the Open/Save dialogue,
>if I select 'Save", it works. But if I select "Open", it again shows the same
>dialog with the name of my .php file. Now if I say open, it opens a blank
>file.
>Can anybody help me?
>
> header("Content-type: unknown");
> header("Content-Disposition: attachment; filename=$name;");
> readfile($name);
>
>Regards, | Linux
>Urmil Parikh | It is now safe to turn on your computer
--
PHP Windows 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]