Posted by Philip Ronan on 10/02/05 18:01
"PaowZ" wrote:
> u'r right...it doesn't...I have not been clear enough with
> myself...anyway, using Get_Redim-Jpg "as is" won't prevent me from
> header errors...
>
> PaowZ
You still don't seem to understand the problem. Let me try to explain again.
(a) This is valid HTML:
<IMG src="resize-image.php?srcfile=x.jpg&w=80&h=40" alt="resized image"
width="80" height="40">
(b) This is invalid crap:
<IMG src="Content-Type: image/jpeg\x0D\x0A\x0D\x0A\xFF\xD8\xFF\xE0\x10JFIF
\x00\x01 ... etc. (raw JPEG data)
What you are currently attempting to produce is invalid crap. The "headers
already sent" error is occurring because PHP has already sent a
"Content-Type: text/html" header at the beginning of the HTML file. If you
want PHP to generate an image for this HTML file, then insert a URL pointing
to a script that generates the image, like in example (a).
--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
[Back to original message]
|