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]
|