RE: [PHP] Setting headers for file download

From: Date: Thu, 15 Jun 2006 08:01:52 +0000
Subject: RE: [PHP] Setting headers for file download
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-238054@lists.php.net to get a copy of this message
Something else is very very very wrong if Content-type: application/octet-stream does not force a download... http://pastebin your code or something, and we'll look at it. On Tue, June 13, 2006 7:19 pm, Peter Lauri wrote: > Hi, when I do that I do not get any download frame showing up. Can > that be > solved? > > -----Original Message----- > From: Richard Lynch [mailto:ceo@l-i-e.com] > Sent: Wednesday, June 14, 2006 4:58 AM > To: Peter Lauri > Cc: php-general@lists.php.net > Subject: Re: [PHP] Setting headers for file download > > On Tue, June 13, 2006 1:44 am, Peter Lauri wrote: >> This is how I try to push files to download using headers: > > Content-type: application/octet-stream > > Any browser failing to download THAT is seriously broken. > > The Content-Disposition: crap will only work on select browsers -- If > you really want that filename to work, tack it onto the end of the > URL. > > The link should be: > > http://example.com/yourscript.php/<?php echo $filename?> > > -- > Like Music? > http://l-i-e.com/artists.htm > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#238054) next »