Hello everyone! I was trying to follow along with this tutorial:
http://www.sitepoint.com/article/watermark-images-php/
and everything worked fine until the end. Basically I'm trying to write a script that both resizes and watermarks images for a couple of websites I'm working on, so that I don't have to go through and do it for every picture manually. My resize script worked no problem, but when I tried to add the watermarking part (from the above tutorial) it stopped displaying the images and instead puts the url for the script on the page???? When I remove the image/jpeg header it outputs the resized image just fine, but the watermarked one is a bunch of symbols.
I have attached my script, I'm very new to PHP so please try not to laugh too hard if I have made a very silly mistake. :)