On Fre, 2002-07-19 at 12:30, pp wrote:
> > header("Content-disposition: attachment;
> > filename=".$attachment->title);
> > mgd_serve_attachment($argv[0]);
>
> Is that working code? You send header before serve attachment?
I guess mgd_serve_attachment does nothing else than
1. send headers (content-type, ...), 2. send data from attachment
so it's no problem if you already set headers before calling
mgd_serve_attachment.
By the way sending headers before serving the attachment does make
sense, especially if you serve images, as Midgard doesn't send any
headers concerning cache control - this has makes some browsers always
reload images and never cache them (see bug #130).
Nico.
--
Nico Kaiser ::
[EMAIL PROTECTED] :: http://siriux.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]