Re: Link for downloading?

From: Date: Sat, 07 Sep 2002 23:33:27 +0000
Subject: Re: Link for downloading?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115632@lists.php.net to get a copy of this message
try this: <?php .. ... $filename = "test"; header("Cache-Control: no-cache, must-revalidate"); header("Content-type:".$mime_type); header("Content-Disposition:filename=".$filename.".doc"); echo "hello, world!"; ?> ----- Original Message ----- From: "Justin French" <justin@indent.com.au> To: "Alex Shi" <chpshi@eol.ca>; <php-general@lists.php.net> Cc: <bbonkosk@tampabay.rr.com> Sent: Saturday, September 07, 2002 11:45 PM Subject: Re: [PHP] Link for downloading? > http://www.zend.com/zend/trick/tricks-august-2001.php > > the stuff he does with mime types and headers is all relevant to what you > want to do... > > Justin > > > on 07/09/02 1:56 AM, Alex Shi (chpshi@eol.ca) wrote: > > > Thanks for your reply! Still have another question: How to use > > header() to generate download link? > > > > Alex > > > > ----- Original Message ----- > > From: <bbonkosk@tampabay.rr.com> > > To: "Alex Shi" <chpshi@eol.ca>; <php-general@lists.php.net> > > Sent: Friday, September 06, 2002 7:27 AM > > Subject: Re: [PHP] Link for downloading? > > > > > >> Question 1: > >> I think this has to do with how you attribute your file extensions in > >> httpd.conf (Apache thing, not PHP), so check out the docs on apache.org > >> > >> Question 2: > >> I woudl tend to believe it depends what kind of link it is... > >> is it and HTTP downlaod site (which would use the windows "save file as" > >> dialog, or is it a link to an FTP site, which may use your local FTP > >> software... > >> > >> HTH > >> -Brad > >> > >>> Hello, > >>> > >>> How to create a link that when click it will lauch file downloading at > >>> client's end. > >>> > >>> And another question which might be biased from this topic, but > >>> still related with the subject of this message: why some downloading > >>> link will lauch a ftp client such as NetAnts or Download Accelerator > >>> while other link will start a Window's builtin download window? > >>> > >>> Alex > >>> > >>> -- > >>> PHP General Mailing List (http://www.php.net/) > >>> To unsubscribe, visit: http://www.php.net/unsub.phpxâLßîÛ¯bžÕó¿ > >>> h! > >>> > >> > >> > >> > >> > >> > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#115632) next »