Reply to Re: jpg header trouble

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация