You are here: Re: jpg header trouble « PHP Programming Language « IT news, forums, messages
Re: jpg header trouble

Posted by Philip Ronan on 10/02/05 15:24

"PaowZ" wrote:

> I'm trying to setup a function which could resize some jpgs 'on the
> fly', I want them to be displayed into the browser.
>
> Here is my function:
>
> function Get_Redim_Jpg($file_jpg){
(snip)
> }
>
> and use it like that : '<img src="'.Get_Redim_Jpg("my_jpg").'">
> So I must use header function to get it displayed as a jpg.
> but I get the 'headers already sent' error..

I suggest you start by learning a bit of HTML. The "src" attribute of an IMG
tag is supposed to contain a URL telling the browser where to find the image
resource. You seem to think that PHP allows you to stuff the contents of an
image file directly into the middle of your HTML source. I'm afraid it
doesn't.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/

 

Navigation:

[Reply to this 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

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