Scratch that - I have found out that it is octet-stream that I need.

However, using code as follows:

                if (strstr ($dt->table[0][1], ".zip")) header ("Content-Type:
application/x-zip-compressed");
                else header ("Content-Type: application/octet-stream");
                header ("Content-Length: ".filesize ($SITE_ROOT.$dt->table[0][1]));
                header ("Content-Disposition: inline; filename=".str_replace 
("/files/",
"", $dt->table[0][1]));
                readfile ($SITE_ROOT.$dt->table[0][1]);

(where $dt->table[0][1] is the filename.)

When I run this code for an exe file, the application name has a [1] put in
the middle of it - e.g. filename is "DelayCalculator-v1.0.exe", results in
"DelayCalculator-v.1[1].0.exe".

I am running on PHP4.2.1 on Apache 1.3.24 and browsing the page with IE6

regards,

Mikey

> -----Original Message-----
> From: Mikey [mailto:[EMAIL PROTECTED]]
> Sent: 23 June 2002 19:28
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] MIME type for an .exe file?
>
>
> Hi there!
>
> Was just wondering if anyone knew what mime type I should use
> when sending a
> ".exe" file to a user?  I have looked through the list and the closest (I
> think) I can find is application/octet-stream - is this right, or is there
> an better type I can't see on the list?
>
> regards,
>
> Mikey
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to