Re: [PHP] Sending Download Header

2001-01-30 Thread Christian Reiniger
On Sunday 28 January 2001 17:52, Natasha wrote: > The filename is just the name, the content is what > matters, and also wanted to know if echoing binary > data is ok ? Yes. That's what application/octet-stream means: binary data. > and what about images, can i send it through octect > stream ?

Re: [PHP] Sending Download Header

2001-01-29 Thread Natasha
to be in > the current directory or > can it be a URL? > > > - Original Message - > From: Bojan Gajic <[EMAIL PROTECTED]> > To: Natasha <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Saturday, January 27, 2001 2:13 PM > Subjec

Re: [PHP] Sending Download Header

2001-01-29 Thread Bojan Gajic
lt;[EMAIL PROTECTED]> > 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 an

Re: [PHP] Sending Download Header

2001-01-29 Thread WreckRman2
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 <[EMAIL PROTECTED]> To: Natasha <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, January 27, 2001 2:13 PM Subject: Re: [PHP

Re: [PHP] Sending Download Header

2001-01-27 Thread Bojan Gajic
header("Content-Disposition: attachment; filename=$file_name"); header("Content-Type: application/octet-stream"); //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

[PHP] Sending Download Header

2001-01-27 Thread Natasha
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.