Page 1 of 1

imagejpeg() only shows Text

Posted: Wed Apr 24, 2002 12:17 am
by jamie17
The imagejpeg()-Function only shows me text wenn I want to send an image directly to the browser.

I used the header function header("Content-type: image/jpeg"); in the top of the document because I have found that on Internet but it doesn´t change anything.

mfg
jamie

Posted: Thu Apr 25, 2002 3:15 am
by twigletmac
In the PHP manual in the entry for imagejpeg():

http://www.php.net/manual/en/function.imagejpeg.php

there is a user comment which states:
you must not leave empty space above the php code. Otherwise php sends clear text information to the browser...
Maybe that's what the problem is?

Mac