Almost, but not quite. You also need to prepend a Header before any output
your data to tell the browser its content type.
Eg
-Original Message-
From: Mark Roedel [mailto:[EMAIL PROTECTED]]
Sent: July 26, 2001 12:02 AM
To: Clayton Dukes; Php-General
Subject: RE: [PHP] Syntax Eyes
> -Original Message-
> From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 25, 2001 10:42 AM
> To: Mark Roedel; Php-General
> Subject: Re: [PHP] Syntax Eyes
>
>
> I have a row in sql that is binary data (a jpeg)
> I need to echo that data to
gt;
To: "Clayton Dukes" <[EMAIL PROTECTED]>; "Php-General"
<[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 9:58 AM
Subject: RE: [PHP] Syntax Eyes
> > -Original Message-
> > From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
> > Sent:
> -Original Message-
> From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 24, 2001 10:53 PM
> To: Matthew Loff; 'Php-General'
> Subject: Re: [PHP] Syntax Eyes
>
>
> Okay, I figured out the @header will actually reset the
> head
CD> Hey, I need a set of extra eyes:
OK. I'll put on my magic X-ray typ-oh-glasses ;)
CD> $res_id = mysql_query ("update contacts_data set (
CD> description='$description',
CD> data='$data',
CD> filename='$input_file_name',
CD> filesize='$input_fil
ECTED]>
To: "'Clayton Dukes'" <[EMAIL PROTECTED]>; "'Php-General'"
<[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 11:20 PM
Subject: RE: [PHP] Syntax Eyes
>
> Output control functions will let you buffer the output, and you can
> decide
ukes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 11:14 PM
To: Php-General
Subject: Re: [PHP] Syntax Eyes
Nevermind, I got it...
Now, how do you reset header information if you need to redclare the
header();
ie:
Warning: Cannot add header information - headers already sent by (ou
ED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 10:54 PM
Subject: [PHP] Syntax Eyes
Hey, I need a set of extra eyes:
$res_id = mysql_query ("update contacts_data set (
description='$description',
data=
Hey, I need a set of extra eyes:
$res_id = mysql_query ("update contacts_data set (
description='$description',
data='$data',
filename='$input_file_name',
filesize='$input_file_size',
filetype='$input_file_type'
where uid='$u
9 matches
Mail list logo