No, that doesn't change anything with Mozilla, and as for IE the file is automatically displayed in the browser. I actually want the Dialog Box to appear. I think Mozilla doesn't know what to do with 'application/octet.'
Dara ----- Original Message ----- From: Evan Nemerson <[EMAIL PROTECTED]> Date: Tue, 28 Jan 2003 21:28:19 -0800 To: "Dara Dowd" <[EMAIL PROTECTED]> Subject: Re: [PHP] content type header for downloading files > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Change > header("Content-Disposition: attachment; filename=".basename($fname).";"); > to > header("Content-Disposition: inline; filename=".basename($fname).";"); > > > On Tuesday 28 January 2003 06:27 pm, Dara Dowd wrote: > > I have the following headers in download.php which forces a download dialog > > box to be opened when a user clicks on a desired file: > > > > header("Content-type: application/octet"); > > header("Content-Length: $filelength"); header("Content-Disposition: > > attachment; filename=".basename($fname).";"); > > > > This works fine with IE, but Mozilla adds a '.php' extension to the > > filename if i choose the save option, and asks me to choose which > > application to use if I want to open the file. The files are binary. Do I > > need to change the content-type header? If so, to what? If not, what do I > > do? Thanks, Dara > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > > iD8DBQE+N2aH/rncFku1MdIRAvilAKCn7xrFd+TeIYYCr99xyH59fih16wCfTCHI > +7dGxJJU5ikFk/H+zhkZ9hw= > =bwBj > -----END PGP SIGNATURE----- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- For the largest free email in Ireland (25MB) & File Storage space (20MB), visit http://www.campus.ie Powered by Outblaze -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php