Your right -- it is wrong. I cut and pasted that directly from a File Sharing app I wrote for our company intranet. I wrote that script a very long time ago (1999 or 2000). I think that, originally, the first one didn't work and I added the second. I forgot to remove it, maybe I though it was a good comment tag. That whole file sharing systems was written in the weeee hours of the morning, so I should probably go through and alter the code. My bad. <?php /* Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com stephen@xxxxxxxxxxxxxxxx 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ?> > From: "Richard Lynch" <ceo@xxxxxxxxx> > Reply-To: ceo@xxxxxxxxx > Date: Tue, 8 Mar 2005 08:56:57 -0800 (PST) > To: "Stephen Johnson" <php@xxxxxxxxxxxxxxxx> > Cc: "zzapper" <david@xxxxxxxxxx>, "php" <php-general@xxxxxxxxxxxxx> > Subject: Re: Re: A general question > > > Call me crazy, but sending TWO Content-type: headers seems just plain > WRONG to me. > > application/octet-stream will force a download in EVERY http-compliant > browser. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php