Re: [PHP] Re: A general question

2005-03-08 Thread Stephen Johnson
code */ ?> > From: "Richard Lynch" <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > Date: Tue, 8 Mar 2005 08:56:57 -0800 (PST) > To: "Stephen Johnson" <[EMAIL PROTECTED]> > Cc: "zzapper" <[EMAIL PROTECTED]>, "php" &

Re: [PHP] Re: A general question

2005-03-08 Thread Richard Lynch
> $len = filesize($file_path); > header("Content-Type: application/force-download"); > header("Content-Type: application/octet-stream"); Call me crazy, but sending TWO Content-type: headers seems just plain WRONG to me. application/octet-stream will force a

Re: [PHP] Re: A general question

2005-03-07 Thread Stephen Johnson
You have to trick the browser into thinking that the jpg file is something other then a jpg. This is sketchy and does not always work. Something like this maybe $len = filesize($file_path); header("Content-Type: application/force-download"); header("Content-