Re: Sending Download Header

From: Date: Sun, 28 Jan 2001 16:52:00 +0000
Subject: Re: Sending Download Header
Groups: php.general 
Request: Send a blank email to php-general+get-37195@lists.php.net to get a copy of this message
The filename is just the name, the content is what matters, and also wanted to know if echoing binary data is ok ? and what about images, can i send it through octect stream ? will they turn up right ? --- WreckRman2 <wreckrman2@combatfs.com> wrote: > When doing this does the $file_name have to be in > the current directory or > can it be a URL? > > > ----- Original Message ----- > From: Bojan Gajic <bojan@inet.co.yu> > To: Natasha <natashaklej@yahoo.com> > Cc: <php-general@lists.php.net> > Sent: Saturday, January 27, 2001 2:13 PM > Subject: Re: [PHP] Sending Download Header > > > > > > header("Content-Disposition: attachment; > filename=$file_name"); > > header("Content-Type: application/octet-stream"); > file://or any other MIME > type > > .... > > echo "Content"; > > > > HTH, > > Bojan Gajic > > > > > > Natasha wrote: > > > > > Hi, > > > > > > I'm making a small thing, that sends download > response > > > to the header, so that I can build a file from > some > > > data in the mysql, and send the data. It can be > both > > > text and binary data, could some one help out > how to > > > go about this ? > > > > > > I know about Content-Disposition, but I don't > know to > > > build it. > > > > > > thanks. > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Yahoo! Auctions - Buy the things you want at > great prices. > > > http://auctions.yahoo.com/ > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: > php-general-help@lists.php.net > > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: > php-general-help@lists.php.net > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/

« previous php.general (#37195) next »