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
imagejpeg() only shows Text
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
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:
Mac
http://www.php.net/manual/en/function.imagejpeg.php
there is a user comment which states:
Maybe that's what the problem is?you must not leave empty space above the php code. Otherwise php sends clear text information to the browser...
Mac