hey, i'm trying to add a watermark to pictures that show up, however it is only showing as text
here is the code
$watermark = imagecreatefrompng('watermark1.png');
$image = imagecreatefromjpeg("/userImages/big/".$pic);
imagecopymerge($image, $watermark, 5, 5, 0, 0, 135, 35, 100);
imagejpeg($image);
imagedestroy($image);
imagedestroy($watermark);
also, where i fould how to do this, said u have to put a
header('content-type: image/jpeg');
code at the top of the page or else it would read as text, however, when i do that, the whole page disappears except for a question mark thing indicating a picture should be there? what do i do??