|
Posted by Stephen Johnson on 03/08/05 21:25
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@thelonecoder.com
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
*/
?>
> From: "Richard Lynch" <ceo@l-i-e.com>
> Reply-To: ceo@l-i-e.com
> Date: Tue, 8 Mar 2005 08:56:57 -0800 (PST)
> To: "Stephen Johnson" <php@thelonecoder.com>
> Cc: "zzapper" <david@tvis.co.uk>, "php" <php-general@lists.php.net>
> Subject: Re: [PHP] 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.
[Back to original message]
|