Re: How do I open Save As Dialog Box?

From: Date: Mon, 23 Aug 2004 14:51:04 +0000
Subject: Re: How do I open Save As Dialog Box?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194473@lists.php.net to get a copy of this message
From: "PHP Junkie" <phpjunkie@mjimm.com>
I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF, TXT & DOC. What I want to do is basically... When the user clicks on the Download Button... The Save As Dialog Box should appear... What is happening right now is that the file opens in it's related software (Word, Acrobat, Notepad etcetera). I don't want the file to open in it's native software. I know I need to use the header ("Content-type: application/octet-stream"); But I don't know how.
Read the first comment here: http://us4.php.net/readfile ---John Holmes...

« previous php.general (#194473) next »